basically the servlet extends servlets and templates extends templates,
and each servlets imports dinamically its corresponding tmpl file via a simple name lookup and pass itself *to* the compiled template.
I remember that thread. So, if I read this correctly, each URL invokes a Webware servlet, but the actual HTML output comes from a Cheetah template compiled by that servlet. Yes? You're basically using Cheetah as Yet Another Templating System, rather than as a web servlet library, which it is also capable of being. Right?
correct. i pass the servlet to the template in this way:
# in SitePage.py def writeHTML(self): template = self.loadTemplate() template._ = self template.respond(trans=self.transaction())
so basically in the TMPL file i can call all methods and varibales
of the parallel servlet hierarchy with $_.whatever compact form. works great.
later, deelan
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
