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

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

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -