Module: Haml::Filters::Javascript
- Includes:
- Base
- Defined in:
- lib/gems/haml-2.0.4/lib/haml/filters.rb
Instance Method Summary collapse
Methods included from Base
#compile, included, #internal_compile, #lazy_require, #render
Instance Method Details
#render_with_options(text, options) ⇒ Object
160 161 162 163 164 165 166 167 168 |
# File 'lib/gems/haml-2.0.4/lib/haml/filters.rb', line 160 def (text, ) <<END <script type=#{[:attr_wrapper]}text/javascript#{[:attr_wrapper]}> //<![CDATA[ #{text.rstrip.gsub("\n", "\n ")} //]]> </script> END end |