1.0.1 • Published 10 years ago

hbsify v1.0.1

Weekly downloads
11
License
MIT
Repository
github
Last release
10 years ago

hbsify

A simple handlebars transfrom for browserify. To install run:

npm install hbsify

Much of this code is a simplified version of hbsfs It doesn't support multiple versions of Handlebars unless you want to manually remove the supplied version of handlebars and add your own. Use the above hbsfy if you need that functionality, it also doesn't support handlebars files that don't end in 'hbs' or 'handlebars' once again the hbsfy package has you covered if you need that functionality.

To use hbsify either specify use the command

browserify -t hbsify <input files> > <outputfile>

or specify it in a gruntfile with grunt-browserify:

browserify: {
  options: {
    transforms: ['hbsify']
  },
  src: ['all-my-files.js']
  dest: 'the-file-i-am-building.js' 
}