cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Stimmel <jon-li...@stimmel.net>
Subject Re: [C2] Matcher concept
Date Sun, 25 Jun 2000 17:16:38 GMT
On Sun, Jun 25, 2000 at 04:42:10PM +0200, Giacomo Pati wrote:

> Niclas Hedhman wrote:
> > 
> > Giacomo Pati wrote:
> > 
> > > Now, what is the $1 representing. The browser match or the uri match?
> > > You thoughts are welcome here.
> > 
> > Thinking........................................!!
> > 
> > $1  =  matching the first parameter of the nearest level.
> > $$1 = matching the first parameter of the seond nearest level.
> > and so forth.
> 
> Uah! I don't like this :(

Ditto. I'd expect them to only hit the most recent match, but then
you don't have access to the previous match.

Ross Burton had suggested adding named parameters (see "RT on Patterns
and Choosers"); perhaps this would be an appropriate use?

Mime
View raw message