add partials support

This commit is contained in:
Matthew Scragg 2014-09-07 11:54:51 -05:00
parent 036434dd7a
commit bea662e2e7
7 changed files with 44 additions and 3 deletions

View file

@ -1,3 +1,9 @@
// Handlebar helpers
Handlebars.registerHelper('well', function(options) {
return '<div class="well">' + options.fn(this) + '</div>';
});
Handlebars.registerPartial('item', '<table class="table table-bordered"><tr><td>{{ name }}<td><td></tr></table>')
/* © 2013 j201
* https://github.com/j201/meta-marked */