On Friday 08 June 2001 10:08, Tom Schwaller wrote:
> Tavis Rudd wrote:
> > I've just uploaded a new version that
> > implements all the changes we talked about this
> > morning. All the tests pass on Python 2.1 and 2.0
>
> ServletFactory.py and PlateKit have gone! Hope they come
> back...
I should have written something about this. ServletFactory
and PlateKit were essentially duplicating what TScompile
does for .tmpl files, but TScompile does it better. If you are
build a site using .tmpl files you should compile all the .tmpl
files into .py files using TScompile or the #extend directive
won't work with intra-site extends. This limitation also exists
with PSP's page @extend directive. The ServletFactory only
works on a single servlet at a time and thus isn't ideal for
working with #extend.
I axed the ServletFactory and PlateKit for this reason and
because it would be one more thing to maintain and explain.
I could foresee lots of questions about #extend problems.
To use TScompile:
1 - run python setup.py install
2 - add .py_bak and .tmpl to the file extensions to ignore
in WebKit's Configs/Application.config file
3 - write your .tmpl files
4 - run "TScompile -R ." in the top of your .tmpl directory
tree
> There was a lot of discussion yesterday about TS syntax,
> which I read to late. Is the #AAA #/AAA syntax still
> possible?
No. I hope this doesn't require anyone to change large amounts
of code.
> The reason why I prefer this one is that you
> see much better which blocks belong together
>
> #for
>
> #end for
> maches #for and #end visually.
That was my thought originally, but I prefer #end for /# now.
Less symbol characters and thus easier for non-programmers.
Tavis
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel