No commit activity in last 3 years
No release in over 3 years
Haml + CoffeeScript template adapter for the Rails asset pipeline
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

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.