Hello all,

How to get the result of the processing of a template ?

I would like to do someting like that:

$c->stash->{template} = 'display.tt2';
my $result = $c->process_template;
# put $result in database

The processing of display.tt2 is quite long (a couple of seconds to go through 
nearly the whole database), so I would like to do it only once.

I'm using a TTSite view. I don't want to get the complete page, only the HTML 
code generated by the template. What command should I use in place 
of "$c->process_template"? I couldn't find any plugin to do that, but not 
sure I looked deeply enough to find it, though...

Thank you,
Xavier

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to