https://github.com/makevoid/rack-tidy-ffi
Rack middleware to tidy application output
https://github.com/makevoid/rack-tidy-ffi
Last synced: 6 months ago
JSON representation
Rack middleware to tidy application output
- Host: GitHub
- URL: https://github.com/makevoid/rack-tidy-ffi
- Owner: makevoid
- Created: 2011-03-15T03:34:36.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2012-04-10T08:24:18.000Z (almost 14 years ago)
- Last Synced: 2025-04-09T16:21:22.764Z (10 months ago)
- Language: Ruby
- Homepage: http://rubygems.org/gems/rack-tidy-ffi
- Size: 98.6 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RackTidyFFI
## Rack middleware to tidy application output
- Works with ruby 1.9
- uses tidy_ffi instead of tidy (broken on 1.9 because of Ruby DL changes)
## Installation
gem install rack-tidy-ffi
## Usage
in your config.ru:
require 'rack-tidy-ffi'
use RackTidyFFI
add this to your Gemfile if you are using bundler:
gem "rack-tidy-ffi", ">= 0.2.1", require: "rack-tidy-ffi"
if you are using rails you can add this in your config/application.rb if you want to use the gem as a middleware:
config.middleware.use RackTidyFFI
## Changelog
- 0.2.1 added Rails support
- 0.2 added gem dependency
## Usage Example:
- Sinatra: https://gist.github.com/2347448
- Rails: https://github.com/makevoid/example_rack-tidy-ffi