You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Geir Magnusson Jr." <ge...@optonline.net> on 2001/05/01 16:09:41 UTC

Re: #$ problem

Fixed.  Use current CVS or last night's snapshot.  Note that last
night's snapshot will fail on the 'test' build target a test template
and the results tempalate were out of synch.

geir

Martin Sedlmayr wrote:
> 
> Does anyone have a hint ? I am using velocity-1.0b2-dev.jar from the
> Turbine kit.
> 
> The desired output is:
> 
> <a href="#1">
> <a href="#2">
> <a href="#3">
> ...
> 
> But the straightforeward approach fails:
> 
> <a href="#$velocityCount">
> 
> Also all kinds of escaping that I have tried:
> #${velocityCount}
> #{${velocityCount}}
> \#$velocityCount
> 
> The only way is to "physically" seperate the # from the $ by another
> letter, a space or so:
> 
> #set( $x = "#" )
> #foreach( $p in $entries )
>   <a href="$x${velocityCount}">$p.Name</a>
> #end
> 
> Many thanks in advance, Martin
/www.faw.uni-ulm.de

-- 
Geir Magnusson Jr.                           geirm@optonline.net
System and Software Consulting

Developing for the web?  See http://jakarta.apache.org/velocity/