Expose printer and visitor objects in node

This commit is contained in:
kpdecker
2013-10-12 15:41:15 -05:00
parent 7ee0c10c10
commit 95d5768e0e
+6
View File
@@ -5,6 +5,12 @@
var handlebars = require('../dist/cjs/handlebars').default;
handlebars.Visitor = require('../dist/cjs/handlebars/compiler/visitor').default;
var printer = require('../dist/cjs/handlebars/compiler/printer');
handlebars.PrintVisitor = printer.PrintVisitor;
handlebars.print = printer.print;
module.exports = handlebars;
// Publish a Node.js require() handler for .handlebars and .hbs files