tmeasday / meteor-router

MIT License
366 stars 76 forks source link

Document explicitly that {{newsUrl}}-style Handlebars helpers can take arguments #96

Open wizonesolutions opened 11 years ago

wizonesolutions commented 11 years ago

I had a hunch, tried it, and it worked.

On the project page, you give an example with Meteor.Router.showPostPath(7) for getting /post/7.

This works in the template too. {{showPostUrl 7}} will return http://localhost:3000/post/7.

Also worth documenting that arguments can be passed to the Meteor.Router.newsUrl()-style functions as well, not just the Meteor.Router.newsPath()-style ones.

mitar commented 11 years ago

+1