velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pierre Lindenbaum <Pierre.Lindenb...@cephb.fr>
Subject Velocity Newbie: looking for examples about declaring macros and loading from jar
Date Fri, 10 Oct 2008 07:39:29 GMT
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


Mime
View raw message