velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <ge...@optonline.net>
Subject Re: Formating data with Velocity
Date Sat, 14 Jul 2001 14:22:19 GMT
One Way wrote:
> 
> Is there a way to format the data in Velocity, e.g. 123456.78 needs to
> be shown as 123,456.78 or $123,456.78 in a web page.
> 

Nothing in Velocity proper.  This would be the domain of what we call a
'context tool', a class put into the context for use by the template
designer, such as 

$formatTool.currency( "123456.76")

There must be a library floating around somewhere to do this...

geir

-- 
Geir Magnusson Jr.                           geirm@optonline.net
System and Software Consulting
Developing for the web?  See http://jakarta.apache.org/velocity/
You have a genius for suggesting things I've come a cropper with!

Mime
View raw message