diff options
Diffstat (limited to 'lib/handlebars/compiler/ast.js')
-rw-r--r-- | lib/handlebars/compiler/ast.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js index 336492d..db7063c 100644 --- a/lib/handlebars/compiler/ast.js +++ b/lib/handlebars/compiler/ast.js @@ -6,11 +6,12 @@ export function ProgramNode(statements, inverse) { if(inverse) { this.inverse = new ProgramNode(inverse); } } -export function MustacheNode(rawParams, hash, unescaped) { +export function MustacheNode(rawParams, hash, open) { this.type = "mustache"; - this.escaped = !unescaped; this.hash = hash; + this.escaped = open[2] !== '{' && open[2] !== '&'; + var id = this.id = rawParams[0]; var params = this.params = rawParams.slice(1); |