On Fri, Jun 08, 2001 at 07:08:39PM +0200, Tom Schwaller wrote:
> ServletFactory.py and PlateKit have gone! Hope they come
> back...
They were removed because they overlap with TScompile but are less
flexible. The paradigm now is:
Write a template *.tmpl
Run TScompile, which creates *.py servlets. Each servlet contains
the template as a constant string, and 5-6 lines of code that wraps
it into a TS class.
That way, you still have your #data section inside the template, but
you can also put supporting code in the class or around the class.
And of course, you can inherit the class and override blocks in
subclasses, for pages that are "similar but not identical to"
other pages.
Another approach is to build the *.py from scratch. I'm doing that
for my site for the common headers, inheriting from a subclas of
SkeletonPage.
--
-Mike (Iron) Orr, [EMAIL PROTECTED] (if mail problems: [EMAIL PROTECTED])
http://iron.cx/ English * Esperanto * Russkiy * Deutsch * Espan~ol
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel