From: Arkaitz B. <ar...@eu...> - 2001-04-22 21:34:35
|
On 22 Apr 2001 14:40:08 -0500, Ian Bicking wrote: > Webmacro has some defense of the server-page design: > http://www.webmacro.org/PageDrivenDesign > > I'm not sure exactly where Webmacro is better than the server pages, > though. For me the best thing about Webmacro/Velocity is that the template language is at the same time: * Very simple: it has only constructs that are useful for presentation tasks. * Extendable: You can stick any object in the "context" and the template engine will do introspection for you. For example: #foreach ($user in $users) <tr><td>$user.name<td>$user.surname #end This will look for getName() and getSurname in the objects of the $users list. This kind of stuff is _extremely_ useful and clean. More interesting stuff about templates vs. JSP/PHP/ASP: Jason Hunter - The problems with JSP http://www.servlets.com/soapbox/problems-jsp.html Jon S. Stevens - YMTD (You Make The Decision): http://jakarta.apache.org/velocity/ymtd/ymtd.html Cheers, Arkaitz. |