raw block helpers
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user