Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rack Beautifier

Rack Beautifier is a tiny middleware that runs every HTML response through htmlbeautifier. In Rails it installs automatically and prettifies the output that hits the browser, which helps when inspecting rendered templates during development.

Installation

Add the gem to your application's Gemfile:

gem "rack_beautifier", github: "CuddlyBunion341/rack-beautifier"

Then bundle install. The middleware is inserted automatically into Rails via a Railtie.

Usage

With Rails no further setup is required. For a pure Rack app, add the middleware manually:

use RackBeautifier::Middleware

Responses marked as text/html are beautified on the fly. Other responses pass through untouched.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages