[Zope-dev] Image.tag(class='x')

Ty Sarna tsarna@endicor.com
30 Jan 2000 19:38:07 GMT


In article <00013012535805.01520@einstein>,
Stephan Richter  <srichter@cbu.edu> wrote:
> How can I specify the HTML4 'class' attribute on an image?
> 
> For example, I want <dtml-var "images.arrow.tag(border='0', class='arrowimg')">
> to generate <img src="images/arrow" border="0" class="arrowimg">
> but this does not parse because 'class' is a Python keyword!

You could do <dtml-var "images.arrow.tag(border='0', CLASS='arrowimg')">

(but don't tell Randy Pausch ;^)