[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Zope] escaping html tags during method calls


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



_______________________________________________
Zope maillist  -  Zope@xxxxxxxx
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )



This mailing list archive is a service of Copilotco.