handlebars compiler should support other file extensions (e.g. .hbs) #174

Closed
nibblebot opened this Issue Feb 8, 2012 · 4 comments

Projects

None yet

5 participants

@nibblebot

should be a simple regex addition to the handlebars bin. Or it could be an option flag

I just ran into this as well. I had to change the names of all my templates.

@skierpage skierpage added a commit to skierpage/handlebars.js that referenced this issue Feb 24, 2012
@skierpage skierpage Accept .hbs extension as well as .handlebars (issue #174). cff3736

I verified the regexp change on line 90 of bin/handlebars to

(/\.handlebars$|\.hbs$/.test(path)

works in Firefox's JS engine, but haven't installed node.js to test it. Sorry for the spam.

@skierpage skierpage added a commit to skierpage/handlebars.js that referenced this issue Feb 24, 2012
@skierpage skierpage Rest of accepting .hbs extension as well as .handlebars (issue #174). 1aa1132

@skierpage Would you clean up the commit and submit a pull request?

Collaborator
wagenet commented Jul 31, 2012

Closing in favor of a PR.

@wagenet wagenet closed this Jul 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment