Reputation: 2506
For the sake of clarity, and because SublimeText isn't bright enough to know the difference between lots of different flavors of ".html", I thought about using .handlebars as the extension to my handlebars-templated files. Meteor seems to only accept files with with .html extension, and I'm wondering if there's a way I can get it to accept .handlebars files too. Thanks
Upvotes: 2
Views: 123
Reputation: 2506
The comment left by Hubert OG was the simplest solution. Use .handlebars.html
files. The SublimeText plugin for handlebars now recognizes that file extension too.
Upvotes: 1
Reputation: 21364
This may be more complicated than you'd like, but one way you can accomplish this is by making your own version of the templating
package.
plugin/compile-templates.js
and at the bottom in the call to registerSourceHandler
, replace "html"
with "handlebars"
.packages
and add it using meteor add yourpackagename
.Upvotes: 1