assemble / assemble-handlebars

Assemble engine plugin for Handlebars templates
https://github.com/assemble/assemble
MIT License
8 stars 19 forks source link

Updating to always register default helper-lib and how registerFunctions method works #3

Closed doowb closed 11 years ago

doowb commented 11 years ago

Updating to always register the default helper-lib helpers.

Updating registerFunctions to take in an object and iterate over the keys to load the helpers. Usage:

var engine = require('assemble-handlebars');
var helpers = {
  foo: function() { return '<h3>bar</h3>'; },
  bar: function() { return '<span>baz</span>'; }
};

engine.registerFunctions(helpers);