Co-operating with Velocity

Tim Pizey <[email protected]> Sun, 23 Apr 2006 20:35:16 +0100
Newsgroups gmane.comp.java.webmacro.user
Message-ID <[email protected]>
Hi, 

I have just switched, temporarily, from WebMacro to Velocity, 
for no good reason other than to exercise some code that has been hanging 
around claiming to allow Velocity/WebMacro co-operation. 

After some fiddling I have 
http://melati.org/melati/org.melati.admin.Admin/contacts/Main 
running using Velocity as the template engine serving WebMacro templates. 

It uses an extended ClasspathResourceLoader 
http://melati.org/xref/org/melati/template/velocity/WebMacroClasspathResourceLoader.html 
so it loads templates out of the jar and a helper class to convert WM to 
Velocity using Perl5
http://melati.org/xref/org/melati/template/velocity/WebMacroConverter.html

Hope this is of interest/use to someone on the list. 

yours
Tim Pizey




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642