Expose printer and visitor objects in node
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user