Module: Haml::Filters::Mochiscript
- Includes:
- Base
- Defined in:
- lib/mochiscript/haml.rb
Instance Method Summary collapse
Instance Method Details
#render(text) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/mochiscript/haml.rb', line 6 def render(text) ctx = Mochiscript::Context.new <<END <script type="text/javascript"> //<![CDATA[ #{ctx.parse(text)} //]]> </script> END end |