Quick followup on my own question....seems the cgiapp_postrun will kinda
help me out, but it doesn't look like there is a clean way to pass in
the pre-set tmpl params.
sub cgiapp_postrun {
my $self = shift;
my $output_ref = shift;
#wrap the output in the layout template
my $layout_tmpl = $self->load_tmpl( 'layout_col_1.tmpl',
die_on_bad_params => 0,
loop_context_vars => 1,
);
$layout_tmpl->param(BODY_CONTENT=> $$output_ref);
# Replace old output with new output
$$output_ref = $layout_tmpl->output();
}
> -----Original Message-----
> From: Tim Colson (tcolson)
> Sent: Monday, August 29, 2005 4:04 PM
> To: [email protected]
> Subject: [cgiapp] Layout template ideas?
>
> Howdy folks -
> My actions populate a template with params, that template
> is rendered.
> And then, I want to wrap the results inside another "layout" template.
>
> I'm wondering if the internal (gooey center) template can somehow be
> reused? (i.e. I may want all the same params set, but just use a
> different template file)
>
> Also wondering -- can the gooey center set param values that I could
> then use in the outer layout template? (Ex. center somehow
> sets a param
> "page-title" to "<B><TMPL_VAR name=username></B>")
>
> Thanks!
> Timo
>
> ---------------------------------------------------------------------
> Web Archive: http://www.mail-archive.com/[email protected]/
> http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]