Hand meteor iron router

I am using iron router for my meteor project, everything is going well, but I just encountered some strange behavior.

I have one The loop is set to a list of items that looks like this.

{{#each list_items}}
{{user.username}}
Click here!

{{/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.

Register the handelbars help on the iron router under the hood:

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} }
{{user.username}}
Click here!

{{/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.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1352 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.