diff options
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r-- | lib/handlebars/compiler/compiler.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js index 03bf8f4..75b2c1b 100644 --- a/lib/handlebars/compiler/compiler.js +++ b/lib/handlebars/compiler/compiler.js @@ -172,7 +172,11 @@ Compiler.prototype = { }, MustacheStatement: function(mustache) { - this.SubExpression(mustache); + if (!mustache.path.type.match(/Literal$/)) { + this.SubExpression(mustache); + } else { + this.accept(mustache.path); + } if(mustache.escaped && !this.options.noEscape) { this.opcode('appendEscaped'); |