Sha256: b0ce7287bfaead2eec13c6240a2a863c0e13647dece901a3df00a1a996157abd
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
h1. Tidy Rack Tidy Rack is a "Rack":http://rack.rubyforge.org/ middleware that runs the body of HTML responses through "Tidy":http://tidy.sourceforge.net/. It's almost certainly a terrible idea to use this in production, but in development it does two useful things: * Includes an HTML comment at the end of the response body that includes info/errors/warnings generated by Tidy. * Prettifies and indents HTML, making View Source easier on the eye. h2. Installation Install the Gem: <pre> gem install phorsfall-tidy_rack --source http://gems.github.com </pre> In Rails, you can add Tidy Rack to your middleware stack by adding the following to @config/development.rb@: <pre> config.middleware.use 'TidyRack' </pre> In Sinatra or a RackUp script, this should work: <pre> use TidyRack </pre> h2. Dependencies You'll need the "Tidy":http://tidy.sourceforge.net/ binaries available to use Tidy Rack. If you're on OS X or Linux you've likely got them already, if you're on Windows you probably have not. h2. Copyright Copyright (c) 2009 Paul Horsfall. See LICENSE for details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phorsfall-tidy_rack-0.0.0 | README.textile |