title: How to hide a button on a template in a certain URL path for Meteorjs?
body: <p>I am quite new to Meteorjs, but finding it great to use.</p>
  
  <p>I want to know what is the best way to hide an element of a template depending on the route/url. Since I would like to use the same template again elsewhere but without certain elements in it.</p>
  
  <p>Thanks</p>
  
  <p>my code according to below solutions</p>
  
  <p>My helpers</p>
  
  <pre><code>Template.postItem.helpers({
    ownPost: function() {
      return this.userId === Meteor.userId();
    },
      commentsCount: function() {
      return Comments.find({postId: this._id}).count();
    },
    routeNameEqual: function(name){
      var routeName= Router.current().route.getName();
      return routeName === name;
    }
  });
  </code></pre>
  
  <p>My html</p>
  
  <pre><code>{{#if routeNameEqual 'postsList2' }}
   &lt;a href="{{pathFor 'postPage'}}" class="discuss btn btn-default"&gt;Learn More&lt;/a&gt;
   {{else}}
  
   {{/if}}
  </code></pre>
  
  <p>Crucial!! it is the route name not the route's path</p>