Skip to content

gcs272/hamlify-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'}})

About

Browserify haml transform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published