diff options
-rw-r--r-- | lib/handlebars/compiler/base.js | 3 | ||||
-rw-r--r-- | lib/handlebars/compiler/printer.js | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/handlebars/compiler/base.js b/lib/handlebars/compiler/base.js index 8ff1101..7594451 100644 --- a/lib/handlebars/compiler/base.js +++ b/lib/handlebars/compiler/base.js @@ -15,9 +15,6 @@ Handlebars.parse = function(input) { return Handlebars.Parser.parse(input); }; -Handlebars.print = function(ast) { - return new Handlebars.PrintVisitor().accept(ast); -}; // END(BROWSER) return Handlebars; diff --git a/lib/handlebars/compiler/printer.js b/lib/handlebars/compiler/printer.js index 1d96a91..780770e 100644 --- a/lib/handlebars/compiler/printer.js +++ b/lib/handlebars/compiler/printer.js @@ -2,6 +2,10 @@ exports.attach = function(Handlebars) { // BEGIN(BROWSER) +Handlebars.print = function(ast) { + return new Handlebars.PrintVisitor().accept(ast); +}; + Handlebars.PrintVisitor = function() { this.padding = 0; }; Handlebars.PrintVisitor.prototype = new Handlebars.Visitor(); |