Add haml-coffee template support to your Rails asset pipeline.
This project is very similar to Haml Coffee Assets but it does not monkey-patch Rails core classes.
Include in project's Gemfile
:
gem 'haml_coffee_template'
- Create template files with extension
.hamlc
%div Hello #{@who}
- Require template in javascript or coffeescript files that are processed via Sprockets
#= require hello document.write JST['hello']({who: "world"})
Compiler can be configured using HamlCoffeeTemplate::Configuration class.