lazd/gulp-handlebars — pull request #26 by Blackening999 (2014-07-05 11:44:23+00:00)
Title: More convenient way to work with "options.processName"

When I've started using your module, I found that I need to processNames in order to provide simple name conversion "components/something_here.hbs" to Ember.TEMPLATES["components/sometheing-here"] and in order not to write redundant replace function for cutting off file extension I will change a core a little bit.

gulp.task("app", function () {
var stream = streamqueue({ objectMode: true });
stream.queue(gulp.src('builds/js/all.js'));
stream.queue(
gulp
.src('assets/templates/**/*.hbs')
.pipe(hbs({
outputType: "browser",
processName: function (templateName) {
//Here i can easily work with filename without extension (templateName in your case has raw format)
return templateName.replace("_", "-");
}
}))
.pipe(concat("builds/templates.js"))
);
return stream.done()
.pipe(concat("app.js"))
.pipe(gulp.dest("builds/js"))
});

It might be not useful in other then "outputType: browser" types :)