0.0.1 • Published 10 years ago

hamlify-js v0.0.1

Weekly downloads
-
License
-
Repository
github
Last release
10 years ago

hamlify-js - Browserify plugin for haml

A quick and easy transform for Browserify to make use of Haml with straight javascript.

For use in Grunt

Gruntfile.js

  grunt.initConfig({
    ...
    watchify: {
        options: {
            callback: function(b) {
                b.transform('hamlify-js');
                return b;
            }
        }
    }
    ...

Allows use of templates like:

example.haml

%span=user.name

example.js

template = require('example.haml')
contents = template({user: {name: 'Someone'}})
0.0.1

10 years ago