Add Hash arguments to simple mustaches (TODO: add Hash args to block helpers)
This commit is contained in:
@@ -11,10 +11,11 @@ var Handlebars = require("handlebars");
|
||||
if(inverse) { this.inverse = new Handlebars.AST.ProgramNode(inverse); }
|
||||
};
|
||||
|
||||
Handlebars.AST.MustacheNode = function(params, unescaped) {
|
||||
Handlebars.AST.MustacheNode = function(params, hash, unescaped) {
|
||||
this.type = "mustache";
|
||||
this.id = params[0];
|
||||
this.params = params.slice(1);
|
||||
this.hash = hash;
|
||||
this.escaped = !unescaped;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user