Helma 2 Templates - juerg
My efforts for a more flexible template engine can be summarized by the following quote from David Heinemeier Hansson: "Logic in the view is good, BUSINESS logic in the view is BAD" source
A short summary of these efforts:
First there was my trial of creating a Velocity Engine Extension for Helma: 23-11-05. I soon noticed that between FreeMarker and Velocity, FreeMarker seems the more powerfull of the two, and implemented a second extension for this templating engine.
There is a text on my website about it: Helma Template Engines.
The FreeMarker extension is able to call Helma macros through a slightly different syntax: <@this.macro foo="bar" bla="bla" />. As an extension, it also is possible to use nested content in macros: <@this.nested foo="bar">Nested text</@>. The nested contend is passed to the macro as a second argument.
I am using this third template enigne now in one of my projects, adding and modifying it when I encounter problems or needs for more functionality. It is by no mean finished, but I provide it here anyway because I think it can serve as a nice starting point for quick sketching and trying out of new template approaches for Helma 2.