How about Cocoon/Axkit?
Switching to Cocoon for your web application environment may be way off, but the following got my attention...
Thinking about it though, I find that I've got to add in a whole new set of directives for handling API calls (that I create) as well as integrating with any XML processor.
...for what the cocoon project calls "logic sheets" or "taglibs": pre-defined functions done in xml, which may then be included in any source document (xml) by inserting a specific "tag".
The advantage is full separation of content, presentation and logic and using standards (xml and xslt in this case).
Besides Cocoon you may want to look into AxKit, similar structure but all done under mod_perl. Perl.com has a good article about using your own taglibs with axkit.
--
Cheers, Joe | [reply] |
Since you are looking for possible ideas, you may want to look into the TAL project created by the Zope team. It provides an unique alternative to the custom HTML tag solution.
Jean-Michel Hiver has ported TAL to Perl in the guise of Petal. There has been some some discussion on the list of porting it to other languages such as Java. From my limited testing, the TAL format cooperates well with GUI editors like Dreamweaver (unlike other template solutions such as Text::Template).
Good luck and please report back on what you eventually decide to use.
| [reply] |
I thik it's a good thing to have some choice between availble solutions. I use a templating system written by a friend of mine. He gave it a name and we are using it for about 2 years. Yes - it's Yet Another Templating System - but it's the simpliest one i've ever seen and does my job perfectly! Anyway - it's not on CPAN (yet), becous it's not ready for it. I'd like to add some improvements before making it public.
Anyway the most important thing is what you really need and you should focus on that. On the other side porting Template::Toolkit to other languages also seams reasonable - especially becouse it's good for the community (Perl and others as well).
++
Greetz, Tom. | [reply] |
| [reply] |
Don't write a new one. If you really need something that has identical syntax and abilities in multiple languages, go with XSL. You can make it behave somewhat like HTML::Template if you try. Maintaining your own templating system in 4 languages (or even 3, if you start by porting an existing one) is hopeless. It's guaranteed to be lacking in features compared to the other choices. | [reply] |