Velocimacro Template Library

mzolton's Avatar

mzolton

26 Mar, 2014 02:52 PM

Is it possible to take advantage of the velocimacro.library property of velocity.properties to create a library of commonly used macros? If not, I would love to hear how others are reusing macros across all of their Velocity templates.

For reference,see the "Velocimacro Properties" section of the following guide.

https://velocity.apache.org/engine/releases/velocity-1.7/user-guide...

I appreciate it!

  1. 1 Posted by Ryan Griffith on 26 Mar, 2014 03:03 PM

    Ryan Griffith's Avatar

    Hi,

    Currently it is not possible to modify the Velocity properties and settings. This does sound interesting; however, and I would highly recommend posting this on our Idea Exchange for others to vote up and/or comment on. Let me know if you need access to the Idea Exchange and I will send over an invitation.

    In the meantime, if you are running Cascade Server 7.6+, you can take advantage of the import directive which would allow you to include a Velocity Format that contains commonly used macros.

    Please let me know if you have any questions.

    Thanks!

  2. 2 Posted by mzolton on 26 Mar, 2014 03:14 PM

    mzolton's Avatar

    Thanks Ryan. That is exactly what I needed to know. I will post this on the Idea Exchange.

  3. mzolton closed this discussion on 26 Mar, 2014 03:14 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac