Hi,

I was going to use the GenericTools with my Turbine projects, but I had
duplicated the functionality in my apps already so didn't.  The velocity
tools project seems a bit like a hack for functions that should have been
included in velocity (like non-integer math) but weren't, and were just
tacked on to the outside.  Maybe with Velocity 1.4 it will not be necessary
to use them. So I didn't use it in the end.

It's pretty easy to use though, just add a line to your
TurbineResources.properties:

tool.global.number = org.apache.velocity.tools.generic.NumberTool

And then reference it in your velocity templates:

$number.format('currency', 12345.67) to print $12,345.67 for example

I have no idea about the tools other than Generic tools.

HTH,

David

-----Original Message-----
From: Lester Ward [mailto:[EMAIL PROTECTED] 
Sent: Thursday May 13, 2004 3:48 PM
To: 'Turbine Users List'
Subject: Velocity Tools


Has anyone managed to use Velocity Tools
(http://jakarta.apache.org/velocity/tools/) with Turbine? Seems like
Velocity Tools is hip on wanting to use its own servlet, so I'm wondering if
anyone has integrated it with the way Turbine uses Velocity.

Thanks,
Wordman

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to