Added 'log' helper - See #97
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user