Is it possible to return dtml from python, and have it rendered correctly
on the page?

for example, the python might look like this...

def get_header(somevar=1):
  if somevar==1:
   return '<dtml-var standard_html_header>'
   return '<dtml-var other_html_header>'

The dtml document in the zodb might look like this...

<dtml-var expr="get_header(1)">  
   Body text....
<dtml-var standard_html_footer>

When this gets rendered, it's as if the dtml document had 
<dtml-var standard_html_header> in place of the get_header call.

I understand how to call external methods from dtml, etc.  I just want
to know if it's possible to get the string returned rendered as dtml.


Mark Gibson
Kaivo, Inc.

Zope maillist  -  [EMAIL PROTECTED]
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to