Class: Haml::SafeErubisTemplate
- Inherits:
-
Tilt::ErubisTemplate
- Object
- Tilt::ErubisTemplate
- Haml::SafeErubisTemplate
- Defined in:
- lib/haml/helpers/safe_erubis_template.rb
Instance Method Summary collapse
Instance Method Details
#initialize_engine
4 5 |
# File 'lib/haml/helpers/safe_erubis_template.rb', line 4
def initialize_engine
end
|
#precompiled_postamble(locals)
16 17 18 |
# File 'lib/haml/helpers/safe_erubis_template.rb', line 16
def precompiled_postamble(locals)
[super, '@output_buffer.to_s']
end
|
#precompiled_preamble(locals)
12 13 14 |
# File 'lib/haml/helpers/safe_erubis_template.rb', line 12
def precompiled_preamble(locals)
[super, "@output_buffer = output_buffer ||= nil || ActionView::OutputBuffer.new;"]
end
|
#prepare
7 8 9 10 |
# File 'lib/haml/helpers/safe_erubis_template.rb', line 7
def prepare
@options.merge! :engine_class => ActionView::Template::Handlers::Erubis
super
end
|