templating system
Ksenia Marasanova
ksenia.marasanova at gmail.com
Wed Apr 13 16:24:50 EDT 2005
On 4/13/05, James Carroll <mrmaple at gmail.com> wrote:
> I've had fantastic results with SimpleTAL
> http://www.owlfish.com/software/simpleTAL/
>
> It uses the Zope Page Templates style markups (which are wysiwyg in
> dreamweaver) and then pulls contents from python functions and
> 'contexts' very nicely. Your example would look something like:
>
> <ul>
> <span tal:repeat="record records()">
> <li><A href="www.yahoo.com" tal:attribute="href
> string:http://imdb.com?search=${record/title}"
> tal:content=record/title>record title goes here</A>
> </span>
ZPT looks nice, but it can't produce non-markup text, right?
Besides that, I find it hard to read... it is kind of extra mental
step to translate "repeat="record records" into "for record in
records" :) But it is matter of taste of course.
--
Ksenia
More information about the Python-list
mailing list