Re: templating system
- From: Ksenia Marasanova <ksenia.marasanova@xxxxxxxxx>
- Date: Wed, 13 Apr 2005 22:24:50 +0200
On 4/13/05, James Carroll <mrmaple@xxxxxxxxx> 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
.
- Prev by Date: Re: PyChart into web site error
- Next by Date: Re: PyChart into web site error
- Previous by thread: Re: templating system
- Next by thread: numarray.array can be VERY slow
- Index(es):
Relevant Pages
|