title: Perl Catalyst, pass to stash 2 template parts
body: <p>I started learning Perl Catalyst and its awesome!!! However, I am having a little issue here with templateing.</p>
  
  <p>I am trying to pass two template variables to the page (header and footer), what I did in the Controller function is</p>
  
  <pre><code>$c-&gt;stash(template =&gt; 'header.html');
  //other page contents
  $c-&gt;stash(template =&gt; 'footer.html');
  </code></pre>
  
  <p>but this only outputs the footer.html (which it should and seems logical)</p>
  
  <p>What would be the way for this approach? I searched google but could not find many helpful results (at least results that I could understand and use)</p>