Module: Haml::Filters
- Defined in:
- lib/haml-coffeescript.rb
Defined Under Namespace
Modules: Coffeescript
Class Method Summary collapse
Class Method Details
.render_script_with_options(text, opts, mimetype) ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/haml-coffeescript.rb', line 2 def self.(text, opts, mimetype) type = " type=#{opts[:attr_wrapper]}#{mimetype}#{opts[:attr_wrapper]}" <<-END <script#{type}> #{text.rstrip} </script> END end |