How do you render a Zope DTML from the REPL say without the Folder Object or anything like that for a test case ?
I have a file called /tmp/tmp.dtml with the following content:
<dtml-var test>
I could get this far :
from AccessControl import ImplC as impl
from App.special_dtml import DTMLFile
#globals has test variable define if that helps?
dtml_page = DTMLFile('/tmp/tmp',globals())
dtml_page() give "None\n"
How do I inject the right namespace into DTMLFile object or during invokation ?