New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asset Ordering #1417
Comments
@RobertLowe Hey Robert, sorry, it's not an error I'm familiar with. Someone on the Meteor Team will have a better idea. |
Yeah, this only works with Handlebars because of this "huge hack" https://github.com/meteor/meteor/blob/devel/tools/files.js#L42 which forces html files to come first in a file list. This doesn't work when you have a non-" |
@glasser Thanks, for pointing me to that. I'd love to see a template engine adapter. |
This is obviously an issue for mquandalle's jade package as well. |
@dweldon indeed it's an issue for This is also an area where Meteor might be rather opinionated. I feel like |
Also see meteor-jade's commit: mquandalle/meteor-jade@91b6464 |
@timhaines @n1mmy
This is an edge case, but since the APIs are under going changes I thought I should call attention to it.
The bundle API doesn't allow a plugin developer to control the order of asset compilation, or at least, priority.
This is important because, with a template plugin (
jade-handlebars
) code you need to load the templates before user code (coffeescript
).Without the ability to direct the underlying system, the coffeescript is loaded first, before the template is defined via js.
Uncaught ReferenceError: Template is not defined
I was able to work around this by using the alphabetical ordering of files/directories.
Any thoughts on how I could fix this, or related information?
The text was updated successfully, but these errors were encountered: