On Thu, Mar 6, 2008 at 7:36 PM, Emily Heureux <[EMAIL PROTECTED]> wrote:
> Hi, I have a variable in a Controller method sent to the stash for a
> particular tt file. What if I want that same variable to be available to
> another tt file? I assume I cannot set two templates in one method.
yeah you can:
my $vars = { foo => 'bar' };
my $output1 = $c->view('TT')->render($c, 'template1.tt', $vars);
my $output2 = $c->view('TT')->render($c, 'template2.tt', $vars);
--
edenc.vox.com
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/