Class: Nutils::Filters::Beautify
- Inherits:
-
Nanoc3::Filter
- Object
- Nanoc3::Filter
- Nutils::Filters::Beautify
- Defined in:
- lib/nutils/filters/beautify.rb
Overview
TODO:
Pass parameters to the HtmlBeautifer engine.
Note:
Requires htmlbeautifer
Instance Method Summary collapse
-
#run(content, params = {}) ⇒ String
Runs the content through [htmlbeautifier](github.com/threedaymonk/htmlbeautifier/).
Instance Method Details
#run(content, params = {}) ⇒ String
Runs the content through [htmlbeautifier](github.com/threedaymonk/htmlbeautifier/). This method takes no options.
23 24 25 26 27 28 |
# File 'lib/nutils/filters/beautify.rb', line 23 def run(content, params = {}) require "htmlbeautifier/beautifier" buffer = "" ::HtmlBeautifier::Beautifier.new(buffer).scan(content) buffer end |