Add support for inverted sections in the parser
This commit is contained in:
@@ -50,7 +50,7 @@ Handlebars.PrintVisitor.prototype.program = function(program) {
|
||||
Handlebars.PrintVisitor.prototype.block = function(block) {
|
||||
var out = "";
|
||||
|
||||
out = out + this.pad("BLOCK:");
|
||||
out = out + (block.inverted ? this.pad("INVERSE:") : this.pad("BLOCK:"));
|
||||
this.padding++;
|
||||
out = out + this.accept(block.mustache);
|
||||
out = out + this.accept(block.program);
|
||||
|
||||
Reference in New Issue
Block a user