[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Re: ANNOUNCE: CGI::Application::Plugin::TT 0.06 ( auto filename implementation ).


On Sun, Feb 06, 2005 at 02:51:47PM -0500, Cees Hek wrote:
> Perhaps there should be a way to switch runmodes that keeps
> current_run_mode() accurate.  It would be quite simple to implement...

Yes, that would be nice. This sounds kinda like an internal redirect in
Apache (see p.129 of the Eagle book).  It could even be called
internal_redirect and used something like the following:

  my rm1 {
    my $self = shift;
    if ($self->query->param('test')) {
      return $self->internal_redirect('rm2');
    }
    return 'Hello World';
  }


> However, I have left in the ability to override the template filename
> generation function by passing in your own function.

Nice touch.


William

-- 
Knowmad Services Inc.
http://www.knowmad.com

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.