Module: BistroCar::Helpers
- Defined in:
- lib/bistro_car/helpers.rb
Instance Method Summary collapse
Instance Method Details
#coffee_script(&block) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/bistro_car/helpers.rb', line 9 def coffee_script(&block) input = realign_indentation(capture(&block)) output = CoffeeScript.compile(input) concat <<-HTML <script type="text/javascript" charset="utf-8"> //<![CDATA[ #{output} //]]> </script> HTML end |