velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject How to deal with multiple pages (meta-velocity?)
Date Fri, 06 Aug 2004 12:43:23 GMT

How do you generate multiple pages from a single data structure with 

To name a few possibilities:
- When there are multiple templates, that each lead to 1 target document: 
run Velocity once for each template (Works well when generating J2EE 
Remote / RemoteHome interfaces)
- When there is a single data structure, that leads to multiple documents: 
iterate the data structure in java source, and run velocity using the same 
template once for each iteration (Works fine, but requires java 
- A velocimacro: #nestedMerge($rootObject $templateName $outputFileName), 
that calls a Java method that performs the merge (No experience (yet, this 
one came up while writing this question))

Any other possibilities, experiences, comments?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message