Added 'log' helper - See #97

This commit is contained in:
Peter Wagenet
2011-10-24 19:41:41 -07:00
parent b36776f4c6
commit 43431d2a78
3 changed files with 24 additions and 2 deletions
+4
View File
@@ -86,6 +86,10 @@ Handlebars.registerHelper('with', function(context, options) {
return options.fn(context);
});
Handlebars.registerHelper('log', function(context) {
Handlebars.log(context);
});
// END(BROWSER)
module.exports = Handlebars;
+2 -1
View File
@@ -104,7 +104,8 @@ Handlebars.JavaScriptCompiler = function() {};
'each': true,
'if': true,
'unless': true,
'with': true
'with': true,
'log': true
};
if (knownHelpers) {
for (var name in knownHelpers) {