[Zope-dev] Using """string""" idiom in dtml

Steve Alexander steve@cat-box.net
Fri, 02 Jun 2000 14:53:28 +0100


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" <steve@cat-box.net>
> To: <zope-dev@zope.org>
> 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