shanejonas / node-handleify

browserify 2 + precompiled client-side handlebars

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handleify

Browserify 2 + handlebars

Usage / Examples

Browserify API usage:

var browserify = require('browserify')
var handleify = require('handleify')

var bundle = browserify()
bundle.transform(handleify)

Clientside code:

var template = require('./views/foo.hbs')
template({
    foo:bar
})

Accessing the Handlebars object in client code:

var Handlebars = require('handleify')
Handlebars.registerHelper( ... )

Commandline Browserify usage (I haven't actually tried this):

$ npm install handleify
$ browserify -t handleify main.js > bundle.js

License

Open source software under the zlib license.

About

browserify 2 + precompiled client-side handlebars

License:zlib License


Languages

Language:JavaScript 100.0%