Haml template implementation. See: haml.hamptoncatlin.com/
# File lib/sinatra/tilt.rb, line 447
447: def evaluate(scope, locals, &block)
448: if @engine.respond_to?(:precompiled_method_return_value, true)
449: super
450: else
451: @engine.render(scope, locals, &block)
452: end
453: end
# File lib/sinatra/tilt.rb, line 437
437: def initialize_engine
438: return if defined? ::Haml::Engine
439: require_template_library 'haml'
440: end
# File lib/sinatra/tilt.rb, line 477
477: def precompiled_postamble(locals)
478: @engine.instance_eval do
479: #{precompiled_method_return_value} ensure @haml_buffer = @haml_buffer.upper end
480: end
481: end
# File lib/sinatra/tilt.rb, line 462
462: def precompiled_preamble(locals)
463: local_assigns = super
464: @engine.instance_eval do
465: 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}
466: end
467: end
Precompiled Haml source. Taken from the precompiled_with_ambles method in Haml::Precompiler: github.com/nex3/haml/blob/master/lib/haml/precompiler.rb#L111-126
# File lib/sinatra/tilt.rb, line 458
458: def precompiled_template(locals)
459: @engine.precompiled
460: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.