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! Can I get around this somehow? For now I am simply entering the tag manually instead of using the 'Image.tag' method. -- Stephan Richter iXL - Software Designer and Engineer CBU - Physics, Computer Science and Chemistry Student
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 ;^)
participants (2)
-
Stephan Richter -
tsarnaļ¼ endicor.com