Re: [Zope] ANNOUNCE: EXPERIMENTAL DTML Syntax change
<dtml-var standard_html_header> <ul> <dtml-in objectValues> <li> <a href="&dtml-URL1;/&dtml-id;/manage_workspace"> <dtml-var title></a> </dtml-in> </ul> <dtml-var standard_html_footer>
So, <a href="<!--#in query--><!--#var value--><!--#/in-->">Yo!</a> Would be written as: <a href="&dtml-in query;&dtml-var value;&/dtml-in;">Yo!</a> ???? I Just wonder... I sometimes have to write such things... Regards, Jephte CLAIN Service Informatique CHSR
Hi, I have .02 to throw into the discussion: Overloading HTML entity syntax for variable references is probably not a good idea because some editors might mess them up during round-trip editing. ColdFusion studio (and probably HomeSite) will change &dtml-foo; to &dtml-foo; if you type anything in design mode. Some kind of very short syntax for variable references that can be safely embedded in tags is still desirable. I think $var would work best. I use BoilerPlate(*) a lot, which uses Python's %(key)s syntax, but that clashes with attributes like width="100%". For doing <!--#in query--><!--#var value--><!--#/in-->, wouldn't it be nice to build it up beforehand into a temporary variable? <dtml.set var="the_href"><dtml.in query>$value</dtml.in></dtml.set> <a href="$the_href">Yo!</a> And, wouldn't it be nice to have a tag for calling extension tags, with parameters like applets have? <dtml.tag handler="TableForEach"> <param name="var" value=""> <oparam name="table-start"><table></oparam> <oparam name="row-start"><tr></oparam> <oparam name="row-end"></tr></oparam> <oparam name="table-end"></table></oparam> </dtml.tag> -Tony Lownds (*) Does anyone here use BoilerPlate? At 9:32 AM +0400 6/16/99, Service Informatique CHSR wrote:
<dtml-var standard_html_header> <ul> <dtml-in objectValues> <li> <a href="&dtml-URL1;/&dtml-id;/manage_workspace"> <dtml-var title></a> </dtml-in> </ul> <dtml-var standard_html_footer>
So,
<a href="<!--#in query--><!--#var value--><!--#/in-->">Yo!</a>
Would be written as:
<a href="&dtml-in query;&dtml-var value;&/dtml-in;">Yo!</a>
????
I Just wonder... I sometimes have to write such things...
Regards, Jephte CLAIN Service Informatique CHSR
_______________________________________________ Zope maillist - Zope@zope.org http://www.zope.org/mailman/listinfo/zope
(For developer-specific issues, use the companion list, zope-dev@zope.org - http://www.zope.org/mailman/listinfo/zope-dev )
---------------- Tony Lownds tony@printra.net
participants (2)
-
Service Informatique CHSR -
Tony Lownds