title: perl dancer: foreach in template is only printing first value
body: <p>I have what should be a really simple problem in Dancer: I have an array of names, and I'd like to print each one in a template.  These names come from an outside source (not a database).  However, when I try to do a foreach over the list in the template, I only get the first value.  </p>
  
  <p>Code:</p>
  
  <pre><code>use Dancer;
  use Template;
  
  set 'template' =&gt; 'template_toolkit';
  
  get '/' =&gt; sub {
      my @list = ("one","two","three");
      template 'list.tt', {
              'values' =&gt; @list,
      };
  };
  dance;
  </code></pre>
  
  <p>And template:</p>
  
  <pre><code>&lt;ul&gt;
      &lt;%FOREACH item IN values %&gt;
          &lt;li&gt;&lt;% item %&gt;&lt;/li&gt;
      &lt;%END%&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>This only outputs a list with a single item, "one". What am I missing?</p>