SimonDegraeve / meteor-jade-handlebars

[DEPRECATED] Write the templates in your Meteor Application using Handlebars and Jade instead of HTML and Handlebars
34 stars 24 forks source link

jade-handlebars with coffeescript #13

Open crapthings opened 11 years ago

crapthings commented 11 years ago

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.

Whoaa512 commented 11 years ago

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

Ulrar commented 11 years ago

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.

AdrienLemaire commented 10 years ago

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 :)

hamxiaoz commented 10 years ago

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