title: Meteor iron router pathFor or equivalent in helper
body: <p>I'm just trying to refer to an iron router route by name in a helper, rather than hard coding the url. So when the user clicks on a button, they are redirected to the item route with the id from the data-id attribute of the button.</p>
  
  <p><strong>items.html</strong></p>
  
  <pre><code>&lt;button class="btn btn-default btn-xs pull-right" data-id={{_id}}&gt;View&lt;/button&gt;
  </code></pre>
  
  <p><strong>items.js</strong></p>
  
  <pre><code>Template.items.events({
    'click button': function(e) {
      // This works but is hard coding the path
      Router.go("/item/" + ($(e.currentTarget).data('id')));
      // This doesn't work but is there an alternative method of doing this
      Router.go(pathFor('item' id=_id))
    }
  });
  </code></pre>
  
  <p><strong>router.js</strong></p>
  
  <pre><code>Router.route('/item/:_id', {
    name: 'item'
  });
  </code></pre>
  
  <p>I can of course use pathFor in a template like so:</p>
  
  <pre><code>&lt;a href="{{pathFor 'item' id=_id}}"&gt;View&lt;/a&gt;
  </code></pre>
  
  <p>Or specify a data attribute:</p>
  
  <pre><code>&lt;button class="btn btn-default btn-xs pull-right" data-path={{pathFor 'item' id=_id}}&gt;View&lt;/button&gt;
  </code></pre>
  
  <p>But wondered if there is an alternative / neater way to do it? If not I might revert back to using  tags.</p>