class Tilt::ErubiTemplate
- instead of the default (which is ::Erubi::Engine).
:engine_class -
allows you to specify a custom engine class to use
to the options supported by the Erubi engine:
ErubiTemplate supports the following additional options, in addition
See github.com/jeremyevans/erubi<br>Erubi (a simplified version of Erubis) template implementation.
def precompiled_template(locals)
def precompiled_template(locals) @src end
def prepare
def prepare @options.merge!(:preamble => false, :postamble => false, :ensure=>true) engine_class = @options[:engine_class] || Erubi::Engine @engine = engine_class.new(data, @options) @outvar = @engine.bufvar # Remove dup after tilt supports frozen source. @src = @engine.src.dup @engine end