I would like to render the template 'location' within a sidebar in the template 'permit'. My code is a replica of the code shown on emberjs.com's rendering templates example but the 'location' template is either not loading at all, or loading just the 'locations' template in repeat but not rendering the original html in the 'permit' template. So the location.hbs is displayed but not inside the sidebar it's been assigned to.
Here's some code :D
<!-- Right Sidebar (a small piece of the 'permit' template) START -->
<div id="sidebar-wrapper" class="super-super-float-right-col">
<div id="sidebar-wrapper" class="super-float-right-col">
<div id="sidebar-wrapper" class="float-right-col">
{{outlet location}}
</div>
</div>
</div>
<!-- Right Sidebar END -->
VpcYeoman.PermitRoute = Ember.Route.extend({
renderTemplate: function() {
this.render('location');
}
});
router.js
VpcYeoman.Router.map(function () {
...
this.resource('permit', { path: '/permit/:permit_id' });
...
});
http://emberjs.com/guides/routing/rendering-a-template/ is once again being vague and of little help.
emberjs community assemble!