Permalink
Browse files

Fix inconsistency in config key names for custom handlebars instances

  • Loading branch information...
1 parent dd3654d commit 45d0e68e1193c671233a5a515dd840f0d0b3820e @allmarkedup allmarkedup committed on GitHub Aug 17, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.js
View
@@ -24,7 +24,7 @@ module.exports = function helpers(groups, options) {
}
options = options || {};
- var hbs = options.handlebars || require('handlebars');
+ var hbs = options.handlebars || options.hbs || require('handlebars');
define(module.exports, 'handlebars', hbs);
@@ -47,7 +47,7 @@ module.exports = function helpers(groups, options) {
forIn(lib, function(group, key) {
define(module.exports, key, function(options) {
options = options || {};
- var hbs = options.hbs || require('handlebars');
+ var hbs = options.handlebars || options.hbs || require('handlebars');
define(module.exports, 'handlebars', hbs);
hbs.registerHelper(group);
return hbs.helpers;

0 comments on commit 45d0e68

Please sign in to comment.