[Zope] interpreting DTML

Ryan Lea r.lea@niwa.co.nz
Fri, 9 Aug 2002 12:52:30 +1200


Hi

What i am trying to do is highlight particular words/phrases in a DTML Document.

What i need to do is read in src dtml from a document, modify it then output it onto the 
screen (interpreted)

I am currently using "_.getitem(var_name).document_src()" to get the src of the 
document as a string which seems to be working fine. The string manipulation is easy 
enough, there are no problems with that either.

The problem is now that i have the modified DTML src in a string, there seems to be no 
way to have it output the interpreted version of it. (HTML tags get rendered, just DTML 
tags don't get interpretd) It leaves the dtml tags still in it so any dtml-var's i have for 
images don't get interpreted and neither do things like <dtml-var 
standard_html_header>. If i save the string to an object then render that object it will 
work, but there has to be a way of doing it without cluttering up the ZODB.

Any help would be greatly appreciated.

Thanks
  Ryan