Skip to content

Commit ec24a87

Browse files
authored
Merge pull request #244 from sandinmyjoints/expose-underlying-handlebars
Export Handlebars instance.
2 parents db29274 + 47392b5 commit ec24a87

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var panini;
22
var help = require('./lib/helpMessage');
3+
var Handlebars = require('handlebars');
34

45
/**
56
* Initializes an instance of Panini.
@@ -8,7 +9,7 @@ var help = require('./lib/helpMessage');
89
*/
910
function Panini(options) {
1011
this.options = options;
11-
this.Handlebars = require('handlebars');
12+
this.Handlebars = Handlebars;
1213
this.layouts = {};
1314
this.data = {};
1415

@@ -47,6 +48,7 @@ module.exports = function(options) {
4748
}
4849

4950
module.exports.Panini = Panini;
51+
module.exports.Handlebars = Handlebars;
5052
module.exports.refresh = function() {}
5153
module.exports.help = function() {
5254
help();

0 commit comments

Comments
 (0)