And this might be obvious and not what you need, but keep in mind that you can:
[% INCLUDE another_template.tt %]
inside your template. Since each request (to your application) by
definition returns exactly one document, judicious uses of
"supertemplates" and INCLUDEs can speed things up or make your code
easier to follow.
Or, maybe not. Subrequests *are* pretty elegant. (and I'll have to
benchmark them to see how they hold up against other methods in terms of
overhead).
Regards,
Jonathan Rockway
> If you just want to render another template and don't want a full other
> request (sub-requests behaves as if the user hit them in the browser)
> look at
> http://search.cpan.org/~sri/Catalyst-View-TT-0.23/lib/Catalyst/View/TT.pm#CAPTURING_TEMPLATE_OUTPUT
>
> Ash
>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ List: [email protected] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
