Skip to content

Commit

Permalink
change templateName regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
hanachin committed Mar 8, 2013
1 parent 87db1d6 commit 4187740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -9,7 +9,7 @@ var createHandlebarsPreprocessor = function(logger, basePath) {
log.debug('Processing "%s".', file.originalPath);
file.path = file.originalPath.replace(/\.hbs$/, '.js');

var templateName = file.originalPath.replace(/\.hbs$/, '');
var templateName = file.originalPath.replace(/^.*\/([^\/]+)\.hbs$/, '$1');

try {
processed = "(function() {var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};"
Expand Down

0 comments on commit 4187740

Please sign in to comment.