class Tilt::ErubiTemplate

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 = if @options[:engine_class]
    @options[:engine_class]
  elsif @options[:capture]
    Erubi::CaptureEngine
  else
    Erubi::Engine
  end
  @engine = engine_class.new(data, @options)
  @outvar = @engine.bufvar
  @src = @engine.src.dup
  @engine
end