Add a #with helper
This commit is contained in:
@@ -99,6 +99,10 @@ Handlebars.registerHelper('if', function(context, fn, inverse) {
|
||||
}
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('with', function(context, fn) {
|
||||
return fn(context);
|
||||
});
|
||||
|
||||
Handlebars.logger = {
|
||||
DEBUG: 0, INFO: 1, WARN: 2, ERROR: 3, level: 3,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user