Stellar::Erb is a safe, easy-to-use wrapper for ERB views outside of Rails applications. It provides a method for reading ERB template files from disk and rendering them to strings with passed arguments. The gem excels at error handling, catching template errors with correct backtraces and context to make debugging straightforward. Rather than working directly with Ruby's standard ERB library, Stellar::Erb offers a cleaner API for file-based template rendering with enhanced error reporting, making it ideal for CLI tools, static site generators, or any Ruby application that needs ERB templates without Rails.
gem install stellar-erb Run this gem instantly in your browser without any installation:
Open in RunRuby.dev →Direct dependencies and their transitive dependencies
| Name | Level | Type | Version | Dependencies |
|---|---|---|---|---|
| erb | Direct | runtime | ~> 4.0 | +1 |
| minitest | Direct | development | ~> 5.0 | - |
| rake | Direct | development | ~> 13.0 | - |
| rubocop | Direct | development | ~> 1.21 | - |
| cgi | Transitive | runtime | v0.5.0 | - |