Test compilation of literal values in mustaches
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user