Methods

Included Modules

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(compiler, text) click to toggle source

@see Base#compile

     # File lib/haml/filters.rb, line 323
323:       def compile(compiler, text)
324:         return if compiler.options[:suppress_eval]
325:         src = ::ERB.new(text).src.sub(/^#coding:.*?\n/, '').
326:           sub(/^_erbout = '';/, "")
327:         compiler.send(:push_silent, src)
328:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.