Middleman::HtmlBeautify
middleman-html-beautify
is an extension for the Middleman static site generator that beautify HTML via HTML Beautifier.
Installation
Add this line to your application's Gemfile:
gem 'middleman-html-beautify'
And then execute:
$ bundle install
Usage
Add this line to your config.rb
activate :html_beautify
There are default settings.
activate :html_beautify do |option|
option.keep_blank_lines = 0
option.indent = " "
option.initial_level = 0
option.stop_on_errors = false
end
License
The gem is available as open source under the terms of the MIT License.