Another slightly different idiom is:

  <dtml-var """'<img src="foo.gif">' * 12""">  

It isn't very SGML-like though.


Jim Sanford wrote:
> 
> You've got my vote. Being able to use """ would solve alot of my dtml coding
> headaches.
> 
> Jim Sanford
> ----- Original Message -----
> From: "Steve Alexander" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, June 02, 2000 8:06 AM
> Subject: [Zope-dev] Using """string""" idiom in dtml
> 
> How easy would it be to allow """python strings""" inside DTML tag
> attributes?
> 
> I'm thinking particularly of situations like:
> 
>   <dtml-var "'''<img src="foo.gif">''' * 12">
> 
> Currently, you need to mess about with _.chr(34) and string
> concatenation.
> 
> The triple-quote idiom looks clearer to my eyes.
> 
--
Steve Alexander
Software Engineer
Cat-Box limited

_______________________________________________
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to