Herb Formatter

Gem: herb-formatter


The Herb Formatter formats HTML+ERB templates with intelligent indentation, line wrapping, and ERB-aware pretty-printing.

This is the Ruby counterpart of the @herb-tools/formatter package.

[!NOTE] This gem is currently an empty placeholder. The implementation lands in a future release.

Installation

bundle add herb-formatter

Or install it directly:

gem install herb-formatter

Usage

require "herb/formatter"

Development

Run bin/setup to install dependencies, then rake test to run the tests. Run bin/console for an interactive prompt.

License

Herb is available as open source under the terms of the MIT License.