velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From phi...@free.fr
Subject Re: Functions
Date Thu, 19 Feb 2015 15:47:38 GMT
Ah, I never thought of using macros as methods/functions. Thanks.

----- Mail original -----
De: "Erik Hatcher" <erik.hatcher@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, phiroc@free.fr wrote:
> 
> 
> Is there a way to create dynamic methods/functions in Velocity Templates?
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
For additional commands, e-mail: user-help@velocity.apache.org


Mime
View raw message