[ZPT] extended path notation

Martijn Pieters mj@digicool.com
Fri, 6 Jul 2001 22:35:36 +0200


On Fri, Jul 06, 2001 at 04:04:27PM -0400, Ethan Fremen wrote:
> <img src="button.png" tal:replace="structure 
> python:('here/button.png').tag(border='0')">

Note that border="0" is default now for image objects.. You can do:

  <img src="button.png" tal:replace="structure here/button.png" />

> mostly, i think the fault lies with the image object, but I have two 
> suggestions:
> 
> 1. allow objects to suggest the attr's they'd like to provide.
> 
> <img src="logo.png" border="0" tal:attributes="here/logo.png/attrs">
> 
> would replace the src attr and add width and height attrs, but leave 
> "border" alone.
> 
> 2. extend path notation to include variables:
> 
> <img src="logo.png" tal:replace="structure here/logo.png?border=0">

Oohhh. How do you do type? Is that a `'0'` or a `0`? Or maybe `0.0`?

-- 
Martijn Pieters
| Software Engineer  mailto:mj@digicool.com
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
---------------------------------------------