Python embedded like PHP

Andy Gimblett gimbo at ftech.net
Wed Mar 20 07:06:18 EST 2002


On Wed, Mar 20, 2002 at 03:45:09AM -0800, Paul Rubin wrote:

> > <ul tal:define="sequence python:container.mydb.selectbyname(name='peter')">
> >   <li tal:repeat="item sequence">
> >     <span tal:replace="item/surname">surname</span>
> >   </li>
> > </ul>

> Geez, I find all this pseudo-HTML horrendous.  Why not just embed

It's not pseudo-HTML, it's W3C compliant HTML (is "<?", btw?).

IMHO it's also better looking than <? ?> tags.

-- 
Andy Gimblett - Programmer - Frontier Internet Services Limited
Tel: 029 20 820 044 Fax: 029 20 820 035 http://www.frontier.net.uk/
Statements made are at all times subject to Frontier's Terms and
Conditions of Business, which are available upon request.




More information about the Python-list mailing list