How to use the AST function from handlebars
Find comprehensive JavaScript handlebars.AST code examples handpicked from public code repositorys.
237 238 239 240 241 242 243 244 245 246
@for Ember.Handlebars.Compiler @param mustache */ Ember.Handlebars.Compiler.prototype.mustache = function(mustache) { if (mustache.isHelper && mustache.id.string === 'control') { mustache.hash = mustache.hash || new Handlebars.AST.HashNode([]); mustache.hash.pairs.push(["controlID", new Handlebars.AST.StringNode(prefix + incr++)]); } else if (mustache.params.length || mustache.hash) { // no changes required } else {
0
0
0
+ 17 other calls in file
handlebars.compile is the most popular function in handlebars (550 examples)