TAL: Template Attribute Language

By Deane Barker on December 6, 2003

XHTML templating joy: I looked into TAL a bit when I was on my Zope fling last year. It is handy to be able to have all sorts of dummy content in your template while you’re developing it.

The benefit of doing it this way is that WYSIWYG editors can render page templates. Designers can edit your page templates easily, and you don’t have to worry about outside tools messing up your templates. You can also use HTML elements as your structure.

To be honest, though, I really haven’t found a bad templating language yet. Velocity, HTML::Template, Smarty, whatever — these languages have a very low bar of functionality to jump over to do everything I need. Can you replace markers? Can you iterate a collection? Can I define custom functions? Great, you’ll work.



  1. But smarty doesn’t allow your designer to view and edit template in a Wysiwyg, this is a great advantage for tal implemantation like PHPTal, don’t you think ?

  2. Ho that’s great:
    – you speack french ;)
    – and smarty have an DWR extension !
    I like it, but I think graphists at my office will hate me if I ask them to do some if … else … :D
    I think they don’t want to know about all that stuff, that’s why i like the TAL idea, because you don’t see any of the logic stuff in Wysiwyg, just some weird attribute, almost invible :)
    Anyway, thanks for telling me that

Comments are closed. If you have something you really want to say, tweet @gadgetopia.