velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Glass-Husain" <wglasshus...@gmail.com>
Subject Re: Velocity Newbie: looking for examples about declaring macros and loading from jar
Date Mon, 13 Oct 2008 02:13:26 GMT
Pierre,

Velocity 1.5 does not support creating an included file of macros.  You can
do this with Velocity 1.6 beta1.

best,
WILL

On Fri, Oct 10, 2008 at 12:39 AM, Pierre Lindenbaum <
Pierre.Lindenbaum@cephb.fr> wrote:

> Hi Velocity,
>
> I'm a newbie with velocity but I've already enjoyed at generating java code
> to handle the entities of a set of mysql tables (
> http://plindenbaum.blogspot.com/2008/10/java-wrappers-for-tables-of.html).
>
> Now, I'm looking for a sample of code that would show :
>
> * the best way to declare a set of macro that will be shared among
> different templates. I've already tried
> to use
>      #parse("macros.vm")
>
> but the engine complained that the macro were already defined.
>
> * how should I code Velocity so it could
> find the templates in the packaged jar file.
>
> Many thanks in advance
>
> Pierre
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@velocity.apache.org
> For additional commands, e-mail: user-help@velocity.apache.org
>
>


-- 
Forio Business Simulations

Will Glass-Husain
wglass@forio.com
www.forio.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message