Skip to content

Commit

Permalink
Merge pull request #1 from lyckron/fix/helpers-feature
Browse files Browse the repository at this point in the history
Fixed Handlebars helpers feature
  • Loading branch information
gakimball committed Nov 9, 2015
2 parents f807d58 + b45886b commit 36667e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
.DS_Store
node_modules
test/_build
npm-debug.log
npm-debug.log

# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
*.iml
.idea/
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = function(settings) {

try {
helper = require(path.join(process.cwd(), helpers[i]));
Handlebars.registerPartial(name, helper);
Handlebars.registerHelper(name, helper);
}
catch (e) {
console.warn('Error when loading ' + name + '.js as a Handlebars helper.');
Expand Down

0 comments on commit 36667e2

Please sign in to comment.