Anthony Eden wrote:
Or (as we do) you can simply give Velocity a String with the template. And of course, String's are easy to store in databases.

I assume you are not allowing the use of #parse or #include since if you are or plan on allowing it then you will need to use a ResourceLoader. Early versions of JPublish used strings which was fine until someone wanted to use the #parse and #include directives.

Right. Here's a typical usecase for us: we have a Menu portlet which renders navigational menus for websites, with links to subpages and folders and such. The rendering is defined in a Velocity template, and usually the default works ok, but sometimes the customer want to control the look&feel more, so they change the template (as explained earlier) to get the exact design they're after. For these kinds of cases you rarely get into any complicated things such as macros or include's, so the above isn't much of a problem.


/Rickard



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to