hamlify
Haml-coffee precompiler plugin for Browserify v2
Last updated 7 years ago by ptaylor .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hamlify 
SYNC missed versions from official npm registry.

Build Status

hamlify

Haml-coffee precompiler plugin for Browserify v2 without magic.

Compiles Haml templates to plain Javascript.

Usage

Install hamlify locally to your project:

npm install hamlify

Then use it as Browserify transform module with -t:

browserify -t hamlify main.js > bundle.js

where main.js can be like:

var template = require("./template.haml");
document.body.innerHTML = template({ name: "Epeli" });

and template.haml:

%h1= @name!

Checkout the example folder for details.

Browserify?

https://github.com/substack/node-browserify

Further reading: http://esa-matti.suuronen.org/blog/2013/03/22/journey-from-requirejs-to-browserify/

Current Tags

  • 0.0.3                                ...           latest (7 years ago)

3 Versions

  • 0.0.3                                ...           7 years ago
  • 0.0.2                                ...           7 years ago
  • 0.1.5                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 2
Last Day 0
Last Week 0
Last Month 3
Dependencies (3)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |