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

multiple templates error #7

Closed dweldon closed 11 years ago

dweldon commented 11 years ago

Hey Simon, thanks for creating this package - it's awesome being able to use jade and meteor together!

So when I upgraded from 0.2.2 to 0.2.5, my templates stopped rendering and I get a lot of errors that look like

Uncaught Error: There are multiple templates named 'group_dashboard'. Each template needs a unique name.

The error references deftemplate.js line 185.

I'm starting to try and narrow down the problem now. Is there anything specific I should be looking for? Was there some migration needed that I didn't do?

SimonDegraeve commented 11 years ago

Can you paste your .jade template?

dweldon commented 11 years ago

It's a fairly complicated multi-view app, so I don't have anything I can immediately paste. I'm going to have to slowly remove parts until I can work it down to a kernel of failure.

SimonDegraeve commented 11 years ago

Ok, let me know when you get a clue.

dweldon commented 11 years ago

The issue appears to be with the interaction between jade-handlebars and meteor-router. For convienence I uploaded a simple failure case here. It's an app that just switches between the root path '/' and anything else... say '/404' and displays 2 different templates. It works fine with 0.2.2, and does not work with 0.2.5. Can you have a look and see what you think? meteor-router seems to be a pretty popular project so it may make sense to figure this one out.

SimonDegraeve commented 11 years ago

Issue is fixed. Thanks for the report.