-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Second call to {{render}} within the same template fails #10710
Comments
this appears to be an issue on beta is this correct? |
@ef4 this may be related to some of your work? |
The error message is kinda silly in this case, but the issue here is that you have specified the template name twice.
Removing the duplicate template, fixes the issue in the demo. Working version: http://emberjs.jsbin.com/rwjblue/368/edit?html,js,output |
As far as I can tell this is not related to my changes. It is fallout from htmlbars. It does appear to be an unintended semantic change that we should fix if possible. Presumably the render helper shouldn't set a template when there's a view class. That's more in line with how normal outlet-driven renders happen. If there's a view class, just use it and let it manage its own template. Otherwise use the default view class and set its template. |
Please see this code which works in the current release of Ember, but not in the current beta.
http://jsfiddle.net/yymrk2z3/
The error given is:
Assertion Failed: You cannot provide a template block if you also specified a templateName
My specific use-case is rendering tabs and their contents, which requires two calls to {{render}}
Thanks!
The text was updated successfully, but these errors were encountered: