There is a distinct difference between the &dtml-varname; syntax and the other more normal way. The difference is that &dtml-varname; 'escapes' the variable being rendered, it is therefore useful when creating url's from object name/contents etc. if you were to try doing a page like this: &dtml-standard_html_header; &dtml-page_content; &dtml-standard_html_footer; You'll have a surprise as it gets 'escaped' and shows the code in the browser rather than the rendered version! HTH Phil phil@wigwamweb.net |>-----Original Message----- |>From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of |>Alexandre Ratti |>Sent: Wednesday, November 03, 1999 12:10 PM |>To: zope@zope.org |>Subject: [Zope] HTML entity syntax |> |> |>Hello, |> |> |>I came across the HTML entity syntax for variables (eg. using |>&dtml-myVar; |>instead of <dtml-var myVar>). |> |>I find it very interesting to simplify DTML code. I'll write up a tip. |> |>It doesn't seem widely used, though. It doens't show up often on this |>mailing list. Are there any reason not to use it? |> |> |>Cheers. |> |>Alexandre |> |>_______________________________________________ |>Zope maillist - Zope@zope.org |>http://lists.zope.org/mailman/listinfo/zope |> |>(Related lists - please, no cross posts or HTML encoding! |> |>To receive general Zope announcements, see: |>http://lists.zope.org/mailman/listinfo/zope-announce |> |>For developer-specific issues, zope-dev@zope.org - |>http://lists.zope.org/mailman/listinfo/zope-dev ) |>