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
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 _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org 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 )
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
participants (2)
-
Jim Sanford -
Steve Alexander