raw block helpers

This commit is contained in:
Jesse Ezell
2013-07-11 14:50:14 -07:00
committed by kpdecker
parent 954253305a
commit 9b14dc40a5
5 changed files with 40 additions and 10 deletions
+9
View File
@@ -131,6 +131,15 @@ var AST = {
}
},
RawBlockNode: function(mustache, content, locInfo) {
LocationInfo.call(this, locInfo);
this.type = 'block';
this.mustache = mustache;
mustache.sexpr.isHelper = mustache.isHelper = true;
mustache.params.splice(0, 0, new AST.StringNode(content, locInfo));
},
ContentNode: function(string, locInfo) {
LocationInfo.call(this, locInfo);
this.type = "content";