Erubi (erb, rhtml, erubi)¶ ↑
Erubi is an ERB implementation that uses the same algorithm as the erubis gem, but is maintained and offers numerous improvements.
All the documentation of ERB applies in addition to the following:
Usage¶ ↑
The Tilt::ErubiTemplate class is registered for all files ending in .erb or .rhtml by default, with the highest priority.
NOTE: It’s suggested that your program require 'erubi' at load time when using this template engine within a threaded environment.
Options¶ ↑
:engine_class => Erubi::Engine¶ ↑
Allows you to specify a custom engine class to use instead of the default which is Erubi::Engine.
Other¶ ↑
Other options are passed to the constructor of the engine class.
ErubiTemplate supports the following additional options, in addition to the options supported by the Erubi engine:
| :engine_class |
allows you to specify a custom engine class to use instead of the default (which is ::Erubi::Engine). |
See also¶ ↑
Related module¶ ↑
Required files
- erubi