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 (text, ) type = "type=#{[:attr_wrapper]}text/x-handlebars#{[:attr_wrapper]}" "<script #{type}>\n#{text.rstrip}\n</script>" end |