title: Meteor iterate list in template
body: <p>I have this:</p>
  
  <pre><code>Template.laps_t.laps = function () {
    return Practices.findOne({name: Session.get('practice')});
  };
  </code></pre>
  
  <p>What do I have to do to iterate over this and put the values in paragraphs? I mean:</p>
  
  <pre><code>{{#each laps.lapList}}
    &lt;p&gt;WHAT DO I HAVE TO PUT HERE TO PRINT THE VALUES OF THE LIST????&lt;/p&gt;
  {{/each}}
  </code></pre>
  
  <p>Am I doing this right? What do I have to put inside that paragraph?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Thanks <a href="https://stackoverflow.com/users/964023/justin-case">Justin Case</a>, your solution did the trick.</p>
  
  <p>Now I have one more problem. I want to print no only <code>lap.lapList</code> but also <code>lap.lapTimeList</code> (which is another list like <code>[1,2,3,4,5,...]</code>) in a table like so:</p>
  
  <pre><code>{{#each laps.lapList}}
    &lt;tr&gt;
      &lt;td&gt;iterate over and print the current value of lapList (solved using {{this}})&lt;/td&gt;
      &lt;td&gt;iterate over and print the current value of lapTimeList&lt;/td&gt;
    &lt;/tr&gt;
  {{/each}}
  </code></pre>
  
  <p><code>laps</code> is the object that holds both <code>lapList</code> and <code>lapTimeList</code>. So, the idea is to print the lap number and the respective time. Does anyone knows how?</p>