module Haml::Filters::PrecompiledTiltFilter

@private

Public Instance Methods

compile(compiler, text) click to toggle source
# File lib/haml/filters.rb, line 357
def compile(compiler, text)
  return if compiler.options[:suppress_eval]
  compiler.send(:push_script, precompiled(text))
end
precompiled(text) click to toggle source
# File lib/haml/filters.rb, line 353
def precompiled(text)
  template_class.new(nil, 1, options) { text }.send(:precompiled, {}).first
end