velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nathan Bubna <>
Subject Re: hashtable dot in key
Date Thu, 05 Aug 2004 15:26:18 GMT
Magne Skjeret said:
> Magne Skjeret wrote:
> > I have a problem with looking up in a hashtable from the template when
> > the key has a dot in it.
> >
> > E.G
> > $!
> >
> > I understand why this example wont work, but is there a way I can do
> > this? Escaping the dot somehow.
> Of course using the get method direclty will work, but a cleaner
> solution is appreciated.


is a pretty clean solution IMHO.  anyway, there's no way to escape the dot.
so that's as clean as you'll get without changing the key or using some magic
key-appending object.  not that a magic key-appending object is really
"cleaner" in my opinion, but if you want an example of something like that,
then check out:

Nathan Bubna

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message