On Sun, 2002-10-27 at 20:49, Edmund Lian wrote:
> >from WebKit.ImportSpy import modloader
> >Then the AppServer is restarted if that file changes. Configurable now
> >also uses this (so changing your Application.config will restart the
> Isn't there a better way to do this? What I mean is that it would be much
> more convenient to be able to tell the modloader to watch all *.tmpl (or
> some other regexp defined) files within recursively defined range of
> directories than to have to modify every servlet to include the code
> snippet above.
Well, this at least adds the infrastructure. If you want to monitor all
template files I think the best solution would be to add some code to
Template (or some local subclass) to do the modloader.watchFile.