I implemented a solution for a route with several dynamic segments , where one of the models is an array.
An implementation can be found here .
Basically, a router is defined as follows:
App.Router.map(function() { this.resource("ab", { path: "/:a/:b" }); });
When you go to this route, a used as is, and b converted to an array. Both "models" are passed to their respective controllers, which also turn the template into a named socket for the application template.
Now I would like to use helper #linkTo in a template that displays an array. To make this work, somehow I would need to combine {{this}} and the current value of a into one object.
Then the idea is to do something like this for this template:
<script type="text/x-handlebars" id="b"> Template b: {{
Is this possible, or are there alternatives?
source share