Ah, I never thought of using macros as methods/functions. Thanks. ----- Mail original ----- De: "Erik Hatcher" <erik.hatc...@gmail.com> À: "Velocity Users List" <user@velocity.apache.org> Envoyé: Jeudi 19 Février 2015 16:43:43 Objet: Re: Functions
You mean like the macros? Since you’re in Solr-land, look at the VM_global_library.vm file and how those pieces are used. (it’s a bit uglier than it should be in the Solr example macro library, but should give you some insight there). — Erik Hatcher, Senior Solutions Architect http://www.lucidworks.com <http://www.lucidworks.com/> > On Feb 19, 2015, at 10:22 AM, phi...@free.fr wrote: > > > Is there a way to create dynamic methods/functions in Velocity Templates? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org > For additional commands, e-mail: user-h...@velocity.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org For additional commands, e-mail: user-h...@velocity.apache.org