Re: simpler replacement for <%shared>

Dave Rolsky <[email protected]>
Newsgroups gmane.comp.web.mason.devel
Message-ID <[email protected]>
On Tue, 28 Sep 2004, Jonathan Swartz wrote:

> The main use of the <%shared> section is to declare variables that can
> be shared between different parts of a component and that persist for a
> single request.

I can't even imagine it being used for anything else.  I have, on
occasion, issued redirects from a shared block if a given argument wasn't
present, but doing that elsewhere is not a big deal.

>     <%request_vars>
>     $a
>     $b => 'default'
>     %c
>     </%request_vars>
>
> The syntax of this block is familiar from the <%args> section.

And thus the name should be something like "request_args" or
"shared_args".  Personally, I prefer the latter, since it'll make it's
function very obvious to existing Mason users.

But other than arguing about the name, I'm all for it.


-dave

/*===========================
VegGuide.Org
Your guide to all that's veg.
===========================*/


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.