[Catalyst] Capture template output?

John Wang johncwang at gmail.com
Sun Feb 19 19:05:03 CET 2006


You can use the Subrequest plugin. The Email plugin has an example using TT
and Subrequest in its POD.

On 2/19/06, Mark Blythe < perl at markblythe.com> wrote:
>
> Is there a way to capture the output of rendering a template through
> the view rather than sending it back as the request body?  It seems
> like this should be possible, but I haven't found any mention in the
> manual.
>
> I want to use the same templating system to generate email text.  I
> could just call Template Toolkit routines directly, but it  would be
> quite convenient to be able to take advantage of the catalyst
> environment, such as the stash.
>
> Any tips?
>
> Thanks,
> Mark
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060219/eb5c461e/attachment.htm


More information about the Catalyst mailing list