Hi.
I've been wondering - tclhttpd has a nice feature called template HTMLs or
something. These are files parsed with tcl 'subst' command - which is
quite useful for small projects.
It's main advantage is that it has .tml and .htm files. .tml files are tcl
sources while .htm files are 'after compilation'. Unless you specify that
this document is dynamic (one 'set' or one command :), the document is
written once in a .htm file and then the .htm file is shown. This could be
veery useful in building a semi-dynamic website (ie based on templates and
stuff, but rarely updated) and it could dramatically increase performance
with such websites - it would only require comparing two mtimes.
It could also be extended with page-timeout - if the .htm page is older
than specified time (set in the config or somewhere), it is automatically
refreshed. This could also be useful on many news services w/o
personalization features - one might assume that putting a news 15-30
minutes after it is added to SQL might not be as big problem as the server
being "killed" with http queries.
I think it is a good think to put on to-do list or to be a separate
project, although I think it should use dtcl syntax and would be a great
part od mod_dtcl - extremely useful with more static projects.
It is more of a future concept, but worth considering (especially that 'cp
page.html page.ttml' and 'ab' on both of them are quite concerning...).
ps. a little late, but - Merry Christmas ;-))))
[yeap, I should get some help ;]
Wojtek Kocjan
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]