title: How to do a while loop in liquid/jekyll?
body: <p>I can't find any info on whether liquid/jekyll can handle <code>while</code> loops. So either no one has asked this question, or Google isn't being very helpful. Is this not something that can be done? I'd essentially like to be able to do something like this:</p>
  
  <pre><code>&lt;!-- creates the 'counter' variable--&gt;
  {% assign counter = 0 %}
  &lt;!-- while 'counter' is less than 10, do some stuff --&gt;
  {% while counter &lt; 10 %}
    &lt;!-- the stuff to be done followed by an increase in the 'counter' variable --&gt;
    {% assign counter = counter | plus: 1 %}
  &lt;!-- the completion of the loop --&gt;
  {% endwhile %}
  </code></pre>