class Tilt::HamlTemplate

haml.hamptoncatlin.com/
Haml template implementation. See:

def evaluate(scope, locals, &block)

def evaluate(scope, locals, &block)
  raise ArgumentError, 'invalid scope: must not be frozen' if scope.frozen?
  if @engine.respond_to?(:precompiled_method_return_value, true)
    super
  else
    @engine.render(scope, locals, &block)
  end
end

def precompiled_postamble(locals)

def precompiled_postamble(locals)
  @engine.instance_eval do
    <<-RUBY
        #{precompiled_method_return_value}
      ensure
        @haml_buffer = @haml_buffer.upper if @haml_buffer
      end
    RUBY
  end
end

def precompiled_preamble(locals)

def precompiled_preamble(locals)
  local_assigns = super
  @engine.instance_eval do
    <<-RUBY
      begin
        extend Haml::Helpers
        _hamlout = @haml_buffer = Haml::Buffer.new(@haml_buffer, #{options_for_buffer.inspect})
        _erbout = _hamlout.buffer
        __in_erb_template = true
        _haml_locals = locals
        #{local_assigns}
    RUBY
  end
end

def precompiled_template(locals)

http://github.com/nex3/haml/blob/master/lib/haml/precompiler.rb#L111-126
method in Haml::Precompiler:
Precompiled Haml source. Taken from the precompiled_with_ambles
def precompiled_template(locals)
  @engine.precompiled
end

def prepare

def prepare
  options = @options.merge(:filename => eval_file, :line => line)
  @engine = ::Haml::Engine.new(data, options)
end