Dave Cash wrote:
> The RETURN directive will tell a template to stop processing.

Although that will only return from the current template.  Any
parent template that called it (e.g. via INCLUDE, PROCESS, etc.)
will continue.

The STOP directive will tell all templates to stop processing
and immediately return.

But I think Perrin's right.  This is usally the kind of thing
you usually want to handle outside your templates.  

Apache::Template provides a simple skeleton of a typical 
mod_perl/TT application.  You're definately encouraged to 
use it as the basis of your own, more specialised handler
and tweak the bits as you need to.

The Badger Book has a chapter all about this kind of stuff.
The example starting on page 512 illustrates one simple way to 
handle redirects.

A


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to