velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <...@xyris.com>
Subject RE: VTL syntax, again ... :)
Date Mon, 05 Mar 2001 17:04:30 GMT

From: David Esposito [mailto:esposito@newnetco.com]

> Is there a way to do the following:
> 
> $$price

It doesn't work as is?  It should.  That's a bug then. :)

> where the first $ sign gets just printed to the output while 
> the second
> $sign gets parsed and returns the value of the price variable?
> 
> if i put a space between the two dollar signs, it 
> accomplishes what I want
> but I don't like the space ... (hehe ... )

A quickie workaound :

#set($dol = '$')

$dol$price

(but it should work... will test now...)

geir

Mime
View raw message