diff options
author | kpdecker <kpdecker@gmail.com> | 2013-02-16 13:36:34 -0600 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2013-02-16 13:36:34 -0600 |
commit | da5cde5d1f5d4e158449ebf8ed223a52433d4013 (patch) | |
tree | 4f02a06c625e8297a4882ac476e15c3c44fe0cc5 /lib | |
parent | 3e86bb0f64b866ab15eda7cda6eed83ba44b2f74 (diff) | |
download | handlebars.js-da5cde5d1f5d4e158449ebf8ed223a52433d4013.zip handlebars.js-da5cde5d1f5d4e158449ebf8ed223a52433d4013.tar.gz handlebars.js-da5cde5d1f5d4e158449ebf8ed223a52433d4013.tar.bz2 |
Move Handlerbars.print into printer file
Diffstat (limited to 'lib')
-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(); |