HTML/ERB Beautifier

A normaliser/beautifier for HTML that also understands embedded Ruby. Ideal for tidying up Rails templates.
Icons/chart bar
Used 34 times
Created by
A Andrew Mason

Usage

Run this command in your Rails app directory in the terminal:

rails app:template LOCATION="https://railsbytes.com/script/z0gsg8"
Template Source

Review the code before running this template on your machine.

def do_bundle
  Bundler.with_unbundled_env { run "bundle install" }
end

run 'bundle add htmlbeautifier --group "development"'
do_bundle
run "bundle binstubs htmlbeautifier"
Comments

Sign up or Login to leave a comment.