At 10:46 AM 6/8/01 -0700, Mike Orr wrote:
>On Fri, Jun 08, 2001 at 01:31:24PM -0400, Geoff Talvola wrote:
> > > Write a template *.tmpl
> > > Run TScompile, which creates *.py servlets. Each servlet
> contains
> >
> > But I would
> > strongly urge you to reconsider this. Having no separate compilation step
> > is one of the really nice things about Python.
>
>The compilation is just for convenience if you already have a number of
>templates (or HTML files). It automates the process of wrapping them
>into class modules. Otherwise you'd have to do each one by hand.
>
>TScompile is a one-time thing. Once you've started customizing the modules,
>you mustn't run TScompile again or it will overwrite your changes.
OK, I misunderstood. I thought the compile step would be something you'd
have to run repeatedly. I guess I really shouldn't comment on
TemplateServer without at least reading the docs :-)
>If I already had a set of modules and was adding a page, I would not make
>a .tmpl file and run TScompile on it. Instead, I would copy an existing
>module and modify it.
That sounds fine, as long as the "copy an existing module" part is really
only copying a few lines of boilerplate from the top and chopping the rest.
--
- Geoff Talvola
[EMAIL PROTECTED]
_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel