node.js - Pass parameters from Router to Template's helper on Meteor -


i have router defined follows

router.route('/profile/:input',function(){     this.render('profile'); }); 

so can value of input calling this.params.input. want query on mongodb value , pass template profile. how can exchange information router helper?

if (meteor.isclient) {     template.profile.helpers({         data: function(){            //what do?!         }     }); } 

inside of template.foo.helpers, can grab router params by:

router.current().params.input


Comments