Methods

Included Modules

Class Index [+]

Quicksearch

Haml::Filters::ERB

Parses the filtered text with ERB. Not available if the {file:HAML_REFERENCE.md#suppress_eval-option `:suppress_eval`} option is set to true. Embedded Ruby code is evaluated in the same context as the Haml template.

Public Instance Methods

compile(precompiler, text) click to toggle source

@see Base#compile

     # File lib/haml/filters.rb, line 309
309:       def compile(precompiler, text)
310:         return if precompiler.options[:suppress_eval]
311:         src = ::ERB.new(text).src.sub(/^#coding:.*?\n/, '').
312:           sub(/^_erbout = '';/, "")
313:         precompiler.send(:push_silent, src)
314:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.