CodeGenerator icon indicating copy to clipboard operation
CodeGenerator copied to clipboard

Would be an useful utility class: DateTool (and maybe a random generator)

Open schittli opened this issue 1 year ago • 0 comments

Hello

thank you very much for sharing and maintaining your great work!, It's always great to start the CodeGenerator and let the magic happen 😄. I use it for projects for non-profit organizations.

Maybe it would not be so complicated for you to include one or two tools classes for velocity in the next update, therefore I ask:

  • It would be very handy if we could work with dates in Velocity, so it would be great if you could include the DateTool class as a tool: https://velocity.apache.org/tools/devel/apidocs/org/apache/velocity/tools/generic/DateTool.html
  • A random generator would also be ingenious, e.g. to generate GUIDs, but for us, this is secondary.

I tried to make the change in a fork myself and then return it as a merge request, but after about 4 hours of reading and experimenting I still couldn't get the project to compile (probably because of my slightly outdated IntelliJ version) 😞 - I guess it's much easier for you.

It would be great if you could add to these tools at some point.

Thanks a lot, kind regards, Thomas

schittli avatar Aug 27 '22 11:08 schittli