title: Play framework template For Loop
body: <p>I am trying to create a for loop in a play framework template like this :</p>
  
  <pre><code> &lt;ul&gt;
    #{list items:1..${pageCount}, as:i}
         &lt;li&gt; &lt;a href="#"&gt;${i}&lt;/a&gt;&lt;/li&gt;
    #{/list}
   &lt;/ul&gt;
  </code></pre>
  
  <p>How ever , it can not work because of this: items:1..${result.count} . I there a way of achieving the same: </p>
  
  <p>Context: I am implementing pagination and  i need to create a link that will take the user to the specified page. May  be there is a 'play' way or achieving the same.</p>