[ZPT] If/else?
ethan mindlace fremen
mindlace@digicool.com
Thu, 10 May 2001 13:19:03 -0400
--On 05/10/01 10:08:27 +0100 Chris Withers chiseled:
> Slightly OT, but I'm still dying to be able to do both of the following:
>
> <dtml-var folder/myobject>
> &dtml-url-/x/y/object;
this one isn't legal, even if you had path notation...
&dtml.url-/x/y/object; would be the legal notation.
> How hard would they be to do?
if in xhtml:
<span tal:replace="folder/myobject" />
else:
<br tal:replace="folder/myobject" >
i tend to use the second case most in attrs, and I think they're most
compelling there.
<a href="test" tal:attributes="href /x/y/object/URL0"> (I think)
If the question is "when are paths going to be in dtml", I don't know.
--
-mindlace-
zopatista community liason