bsb has asked for the wisdom of the Perl Monks concerning the following question:
I'm using Apache::Template (TT2) as the templating system but there's are a few parts done as A::Registry scripts. These do perly processing and use the same tt2 templates as the interface. I could run the templates myself but would prefer to go via A::T so the configuration is all in the httpd.conf.
That seems to leave the following options:
Is there anything I should look out for? Is there a better way I haven't come across?
sub try_again { my ($r,$msg) = @_; $r->pnotes(user_form_err => $msg); my $subr = $r->lookup_uri('/register.thtml'); $r->filename($subr->filename); return Apache::Template::handler($r); } sub my_handler { ... something() or return try_again($r, $msg); ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Calling Apache::Template's handler directly
by perrin (Chancellor) on Jan 06, 2003 at 02:22 UTC | |
by bsb (Priest) on Jan 06, 2003 at 03:13 UTC | |
by perrin (Chancellor) on Jan 06, 2003 at 05:27 UTC |