RJ,
I'm not following what it is you are trying to do or why you want to
do it that way. If what you are trying to do is that complex, you
should consider using Catalyst instead of trying to coerce Mason to
do unnatural things. Catalyst provides a more structured environment
that encourages you to separate the actions, which you write as Perl
modules, from the output rendering, for which you can use Mason
templates.
Derek
On 10 Mar 2006, at 21:05 , RJ Herrick wrote:
Hello all,
On some requestes I would like to effectively change the requested
component mid-stream. Something like this:
<c>
if (my $alt = $user->Redirected) {
$m->?unknown_method?($alt);
} else {
$m->call_next;
}
</c>
Currently, my thoughts are:
I don't want to call redirect, because I want to go through my <%
cleanup>, not abort mid-request.
I don't want to call subexec, because I don't want to start at the
beginning of the request again (specifically, execute the base
syshandler).
I don't want to call comp, because I want all the autohandler
wrapping between here and the component I'm diverting to.
Is this possible? What am I overlooking or misunderstanding?
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users