Haml Coffee Template
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.
Installation
Include in project's Gemfile
:
gem 'haml_coffee_template'
Usage
- 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"})
Advanced usage
Compiler can be configured using HamlCoffeeTemplate::Configuration class.