I started learning Perl Catalyst and its awesome!!! However, I am having a little issue here with templateing.
I am trying to pass two template variables to the page (header and footer), what I did in the Controller function is
$c->stash(template => 'header.html');
//other page contents
$c->stash(template => 'footer.html');
but this only outputs the footer.html (which it should and seems logical)
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)