I have one The loop is set to a list of items that looks like this.
{{#each list_items}}
{{/each}}
My user’s JSON The objects are as follows:
{
user: {
username: jdoe
},
images: {
low-res-url: http://example.com
},
link: http://example.com/profile
}
Now{{ user.username}} is displayed as expected, but when I try to put {{link}} into the href, I say an error from the iron router
"You called Router.path for a route named undefined but that that route doesn't seem to exist. Are you sure you created it?"
Any help or suggestions would be greatly appreciated.
Handlebars.registerHelper( 'link', function (options) {
...
});
Just change the field link to a different name, such as my_link.
I am using iron router for my meteor project, everything is going well, but I just encountered a Some strange behavior.
I have a loop set to a list of items that looks like this.
{{#each list_items} }
{{/each}}
The JSON object of my user looks like this:
{
user: {
username : jdoe
},
images: {
low-res-url: http://example.com
},
link: http://example. com/profile
}
Now {{user.username}} is displayed as expected, but when I try to put {{link}} into href, I say an error from the iron router p>
"You called Router.path for a route named undefined but that route doesn't seem to exist. Are you sure you created it?"
Any Help or suggestions would be greatly appreciated.
Help on registering handelbars under the hood iron router:
< pre>Handlebars.registerHelper(‘link’, function (options) {
…
});
Just change the field link to a different name, such as my_link.