(shaking his head)

please use a tool object, if at all possible. using macros as functions
gives me the willies. :)  they're meant to clean/simplify repetition of
content. just because they can be used as functions, doesn't mean they
should be. things can get ugly down that road. :)

On Thu, Feb 19, 2015 at 7:47 AM, <phi...@free.fr> wrote:

> 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
>
>

Reply via email to