HTML5 Beautifier

HTML5 Beautifier is an extension to Ruby that process an HTML5 document and reformat it with a correct indentation.

Installation

Ruby on Rails

Add this line to your application's Gemfile:

gem "html5-beautifier"

And then execute:

$ bundle

Other Ruby applications

Install the gem:

$ gem install html5-beautifier

Usage

Ruby on Rails

"Hello World".beautify

Other Ruby applications

Require the gem before use it:

require "html5-beautifier"

puts "Hello World".beautify

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Support

If you have any questions or issues with HTML5 Beautifier, or if you like to report a bug, please create an issue on GitHub.

License

MIT License. Copyright (c) 2012 Jari Jokinen. See LICENSE for further details.