Class | Webby::Filters::Tidy |
In: |
lib/webby/filters/tidy.rb
|
Parent: | Object |
The Tidy filter is used to process HTML (or XHTML) through the tidy program and outpu nicely formatted and correct HTML (or XHTML).
Options can be passed to the tidy program via the Webby.site struct. Setting the tidy_options to the string of desired options will do the trick.
From a project‘s Rakefile, include the following line (or one that‘s more to your liking):
SITE.tidy_options = "-indent -wrap 80 -utf8"
Process the original HTML text string passed to the filter when it was created and output Tidy formatted HTML or XHTML.