[Zope] Mapping Image object properties to img tag attributes

Service Informatique CHSR chsrinfo@guetali.fr
Mon, 15 Feb 1999 18:21:32 +0400


I just posted this to the collector. What do you think?

---------------------8<------------------------
It would be cool to map Image object properties to the <IMG> tag attributes.
When using image for links, it is better to specify the attribute 'border=0'

I want to be able to write <!--#var MyImage-->, with the MyImage object
having
the border=0 attribute, or <!--#var MyImage tag-attribute-border=0-->.

The rendered HTML text is then:

<img src=/path/to/MyImage alt="MyImage" border=0>
---------------------8<------------------------

Also, many thanks to Jim who explained that StructuredText gets confused
with \r\n. I looked at the code, but quickly gave up as regular expressions
is not my hobby :-) Perhaps someone could change this someday?
For the moment, i take care of translating \r\n to \n before feeding my
database.

Regards,

Jephte CLAIN
Service Informatique