[Zope] escaping html tags during method calls

Dan Meszaros dm@petamem.com
Tue, 7 May 2002 16:00:02 +0200 (CEST)


Hi,

i'm very confused by zope's behaviour when calling dtml methods.

let's have method m1 that returns
  <p>
  hello
  </p>


when i do
  <dtml-var standard_html_header>
  <dtml-var "m1">
  <dtml-var standard_html_footer>

i get:
  ...
  &lt;p&gt;
  hello
  &lt;/p&gt;
  ...


when i do
  <dtml-var standard_html_header>
  <dtml-var m1>
  <dtml-var standard_html_footer>

i get
  ...
  <p>
  hello
  </p>
  ...

which is ok.
unfortunatelly i need to call method, that is not in the same
directory, parser forces me to use double-quotes. being not satisfied
with the result mentioned above (first example) i tried

  <dtml-var standard_html_header>
  <dtml-let a="subdir.m1">
    <dtml-var a>
  </dtml-let>
  <dtml-var standard_html_footer>

can someone explain, why does it work that way?

regards
-dan