With Template Toolkit, if you pass your $self object to the template, then
you can just say:

[% self.some_other_run_mode %]

Though if I wanted to embed runmode output, I'd probably just pass it to the
template as regular data.

   my $output = $self->some_other_run_mode;
   $self->tt_process( { other_stuff => $output } );


Mike

On 11/10/06, Robert Hicks <[EMAIL PROTECTED]> wrote:

CGI::Application::Framework has an idea of an embedded runmode:

    HTML::Template: <TMPL_VAR NAME="CGIAPP_embed('some_run_mode')">

    HTML::Template::Expr: <TMPL_VAR EXPR="CGIAPP_embed('some_run_mode')">

    Template::Toolkit: [% CGIAPP.embed("some_run_mode") %]

I think that is a pretty cool idea and was wondering if anyone likes
that as well. Is there a plugin for it or anything (outside of CAF)?

Robert


---------------------------------------------------------------------
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]


Reply via email to