[Zope] ZPT img using attributes (newbie)

Crosbie Fitch crosbie@cyberspaceengineers.org
Wed, 15 Jan 2003 23:20:11 -0000


I got this going no problem:

<img src="/logo.gif">

Then I spent ages today trying to figure out why the following wouldn't
work:

<img src="/logo.gif" tal:attributes="src here/logo.gif" />

Eventually I looked at other examples like this:

<img src="/logo.gif" border="0"
     tal:define="im here/logo.gif"
     tal:attributes="src    im/absolute_url;
                     width  im/width;
                     height im/height;
                     alt    im/title" />


And then I figured that I needed a magic word:

<img src="/logo.gif" tal:attributes="src here/logo.gif/absolute_url" />



I guess these things become obvious over time...