java - Define global contants in velocity -


vm_global_library.vm file used defining global macros available in templates.

i tried defining variable in file hoping become available in templates:

#set( $size_limit = 100) 

however doesn't work , $size_limit prints literal.

how can define variable available in templates? there global version of org.apache.velocity.velocitycontext?


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -