No commit activity in last 3 years
No release in over 3 years
Beautify HTML string
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.5
~> 1.17
~> 3.30
~> 1.3
~> 12.0

Runtime

 Project Readme

Middleman::HtmlBeautify

Build Status Gem Version

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.