Module: Haml::Filters::Handlebars

Includes:
Base
Defined in:
lib/rasputin/haml.rb

Instance Method Summary collapse

Instance Method Details

#render_with_options(text, options) ⇒ Object



5
6
7
8
# File 'lib/rasputin/haml.rb', line 5

def render_with_options(text, options)
  type = "type=#{options[:attr_wrapper]}text/x-handlebars#{options[:attr_wrapper]}"
  "<script #{type}>\n#{text.rstrip}\n</script>"
end