velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From walter.van.iter...@philips.com
Subject How to deal with multiple pages (meta-velocity?)
Date Fri, 06 Aug 2004 12:43:23 GMT
Hi,

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

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 
programming)
- 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?

Thanks,
Walter

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


Mime
View raw message