Skip to content

Commit

Permalink
Allow helper callback to use template path
Browse files Browse the repository at this point in the history
  • Loading branch information
jryans committed Jan 3, 2013
1 parent b3971db commit dfa7f87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hbs.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ define([
: function (name){return (config.hbs && config.hbs.helperDirectory ? config.hbs.helperDirectory : helperDirectory) + name;};

for ( i = 0; i < helps.length; i++ ) {
paths[i] = "'" + pathGetter(helps[i]) + "'"
paths[i] = "'" + pathGetter(helps[i], path) + "'"
}
return paths;
})().join(','),
Expand Down

0 comments on commit dfa7f87

Please sign in to comment.