title: Pulling data from collection using Iron router
body: <p>I have a small issue. The below code snippet works well if i directly dump it in the body tag </p>
  
  <pre><code>      {{#each tasks}}
     &lt;ol&gt; &lt;li&gt;Router Name: {{ routerName }}&lt;/li&gt;   
      &lt;li&gt;Router Enable: {{Enable}}&lt;/li&gt;&lt;/ol&gt;
           {{/each}}
  </code></pre>
  
  <p>However, when I wrap it within a template and try call it via a route (iron router), it fails to show the query result. </p>
  
  <pre><code>&lt;template name ='ManagementConfig'
        {{#each tasks}}
     &lt;ol&gt; &lt;li&gt;Router Name: {{ routerName }}&lt;/li&gt;   
      &lt;li&gt;Router Enable: {{Enable}}&lt;/li&gt;&lt;/ol&gt;
           {{/each}}
  &lt;/template&gt;
  </code></pre>
  
  <p>Route.js:</p>
  
  <pre><code>Router.route('/ManagementConfig',{ name:'ManagementConfig' });
  </code></pre>
  
  <p>Everything apart from the above works well within the template and the route. Where am I going wrong?</p>