Class: Haml::SafeErubisTemplate

Inherits:
Tilt::ErubisTemplate
  • Object
show all
Defined in:
lib/haml/helpers/safe_erubis_template.rb

Instance Method Summary collapse

Instance Method Details

#initialize_engine



16
17
# File 'lib/haml/helpers/safe_erubis_template.rb', line 16

def initialize_engine
end

#precompiled_postamble(locals)



28
29
30
# File 'lib/haml/helpers/safe_erubis_template.rb', line 28

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

#precompiled_preamble(locals)



24
25
26
# File 'lib/haml/helpers/safe_erubis_template.rb', line 24

def precompiled_preamble(locals)
  [super, "@output_buffer = ActionView::OutputBuffer.new;"].join("\n")
end

#prepare



19
20
21
22
# File 'lib/haml/helpers/safe_erubis_template.rb', line 19

def prepare
  @options.merge! :engine_class => Haml::ErubisTemplateHandler
  super
end