About
nanoc-tidy.rb is a
nanoc
filter that integrates
tidy-html5
into nanoc.
The filter can format and validate HTML produced
during the
nanoc
build process.
Examples
Defaults
The following example uses the default command line arguments:
# Rules
require "nanoc-tidy"
compile "/index.html.erb" do
layout("/default.*")
filter(:erb)
filter(:tidy)
write("/index.html")
end
Options
The following example forwards a command line argument:
# Rules
require "nanoc-tidy"
compile "/index.html.erb" do
layout("/default.*")
filter(:erb)
filter(:tidy, argv: ["-upper"])
write("/index.html")
end
Rubygems.org
nanoc-tidy.rb can be installed via rubygems.org:
gem install nanoc-tidy.rb
Sources
License
BSD Zero Clause.
See LICENSE.