Skip to content

wonderweblabs/node-hamlify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

Haml-coffee precompiler plugin for Browserify v2.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.1%
  • HTML 6.8%
  • Makefile 3.1%