I would like to pre-process a DTML file (accessed using HTMLFile) before
displaying it in the web browser.
Example Code:
dtml=HTMLFile('manage/mycode', globals())
def cleanUp:
# eliminate blank lines and <!-- comments--> from DTML
.....
def printDTML(self):
return self.cleanUp(dtml)
The problem is that the dtml variable doesn't return the DTML, but the
object reference. Is there a way to fetch the raw DTML content from the
HTMLFile object?
Kevin Howe
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
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 )