On Sun, 21 Aug 2005, Garrett, Philip (MAN-Corporate) wrote: > Is there an endorsed method for performing a redirect (internal or external) > cleanly from inside an Apache::Template page? > > I can redirect using [% request.internal_redirect(...) %], but the template > continues to process, even if the output isn't sent to the browser. I can > abort the template processing by THROWing an exception, but then the error > appears in the logs. Yuck. > > Surely there's a better way... ?
The RETURN directive will tell a template to stop processing. Dave /L\_/E\_/A\_/R\_/N\_/T\_/E\_/A\_/C\_/H\_/L\_/E\_/A\_/R\_/N\ Dave Cash Power to the People! Frolicking in Fields of Garlic Right On-Line! [EMAIL PROTECTED] Dig it all. _______________________________________________ templates mailing list [email protected] http://lists.template-toolkit.org/mailman/listinfo/templates
