slimrb
Compile Slim templates to HTML
TLDR
Compile Slim to HTML
SYNOPSIS
slimrb [-p] [-r] [options] [input] [output]
DESCRIPTION
slimrb is the command-line compiler for the Slim template language, a lightweight Ruby templating engine that reduces HTML markup to its essential parts. It reads Slim files and renders them to HTML, ERB, or raw Ruby code for inspection and debugging.
Slim uses indentation-based nesting and eliminates closing tags, producing templates that are significantly shorter than equivalent HTML or ERB. The compiler supports pretty-printed output for debugging, Rails-compatible code generation, and conversion to ERB format for use in contexts that don't support Slim directly.
The tool integrates with Ruby's Tilt template interface and works with Rails, Sinatra, and other Rack-based frameworks. Plugins can extend the syntax with logic-less templates, translation support, and other features.
PARAMETERS
-p, --pretty
Pretty print HTML.-r, --rails
Rails mode.-e, --erb
Convert from ERB.-l, --logic-less
Logic-less mode.-t, --translator
Translation mode.
CAVEATS
Ruby required. Slim gem needed. Ruby-specific templating.
HISTORY
slimrb is the CLI compiler for Slim, a fast and lightweight Ruby templating engine.
