class Tilt::ErubiTemplate

Erubi (a simplified version of Erubis) template implementation

def precompiled(locals)

def precompiled(locals)
  source, offset = super
  [source, offset - 1]
end

def precompiled_postamble(locals)

def precompiled_postamble(locals)
  [@outvar, super].join("\n")
end

def precompiled_preamble(locals)

def precompiled_preamble(locals)
  [super, "#{@outvar} = _buf = String.new"].join("\n")
end

def prepare

def prepare
  @options.merge!(:preamble => false, :postamble => false)
  @engine = Erubi::Engine.new(data, @options)
  @outvar = @engine.bufvar
  @engine
end