Skip to content

Commit

Permalink
Fix inconsistency in config key names for custom handlebars instances
Browse files Browse the repository at this point in the history
  • Loading branch information
allmarkedup committed Aug 17, 2016
1 parent dd3654d commit 45d0e68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -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);

Expand All @@ -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;
Expand Down

0 comments on commit 45d0e68

Please sign in to comment.