meteor-jade-handlebars icon indicating copy to clipboard operation
meteor-jade-handlebars copied to clipboard

jade-handlebars with coffeescript

Open crapthings opened this issue 11 years ago • 4 comments

if put .jade and .coffee into same level folder meteor will load .coffee before .jade, then it causes no such template.

now i put .jade into a deep folder, but i think this is not convenient.

crapthings avatar Feb 16 '13 07:02 crapthings

This is a problem with the way meteor loads things, not necessarily with this package.

Whoaa512 avatar Apr 10 '13 16:04 Whoaa512

The files are loaded in alphabetical order, you have to make sure the .jade files are before the .coffee files .. You could just add _ in front of each jade file, to make sure.

It's said there is a way for a package to specify it wants to be loaded before some other, may be it would be the solution here ? I can't find any real information on how to do that though.

Ulrar avatar May 08 '13 22:05 Ulrar

Thanks, I was struggling trying to understand why jade + coffee wouldn't work together, but now it makes sense. I'll prefix my jade file with an underscore :)

AdrienLemaire avatar Jan 08 '14 03:01 AdrienLemaire

I think this is solved in meteor-jade v0.2.2

hamxiaoz avatar May 01 '14 18:05 hamxiaoz