webficient

Rack middleware submitted by webficient

Sort by: Latest | Highest rated

Rack::Tidy

Added by webficient at October 13, 2009 19:06 Star_smallStar_smallStar_smallStar_smallStar_small

Tired of excessive white space and crappy ERb indenting? Rack::Tidy cleans text/html markup by automatically indenting and reformatting content. Best results are achieved with valid markup, when you simply want to use this component to produce clean (X)HTML rendered by templating systems such as ERb.

Rack::Tidy relies on the power of the Tidy gem and defaults to settings based on convention. However, you can override these through configuration.