> Its a little harder to start w/ the standard webware WebKit.Page and go 
> to templates, but try writing actions something like this:
> 
>       def next(self):
>               ''' move the start point and process normally '''
>               self.RSStart=curPos + self.pageSize                     
>               self.writeHTML()
> 
>       def printPage(self):
>               '''Just the meat, no header or footer please '''
>               self._printThis=1
>               self.writeln('<html><body>')
>               self.writeContent()
>               self.writeln('</body></html>')

Actually, I just left everything in writeHTML(), where the template
logic checks the fields available in order to decide which template to
use for display output. It's still very simple, and can just as easily 
be used with other checks to deal with information stored in sessions,
found in databases or whatever. I'm not using much of the WebKit.Page
then, but that's OK. The beauty is that all this can mix and match so
well as it is.

  Tim



-------------------------------------------------------
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

Reply via email to