[Please send bug reports and questions to the mailing list - see Cc.]
Hi!
On Wed, 3 Aug 2005 12:35:27 +1100, Igor Plekhov penguin@ocean.vvo.ru wrote:
HTML-TEMPLATE maintains a cache of previously created template printers. If the (merged) pathname can be found in this cache and the file denoted by this pathname hasn't changed since the associated cached template printer was created (which is tested by FILE-WRITE-DATE) the cached value will be used and no new template printer will be created.
But HTML-TEMPLATE does not check whether files included in the template have changed. It's a bug.
No, it isn't. The docs clearly say that the included file "is implicitely converted into a template printer AT GENERATION TIME."
Also it would be nice to have a feature to completely disable the cache, so that HTML-TEMPLATE will always regenerate template printer. It would be useful in a development process.
See the documentation for CREATE-TEMPLATE-PRINTER - specifically the :DO-NOT-CACHE keyword. If you're sure you'll never want to use the cache write an :AROUND method for CREATE-TEMPLATE-PRINTER which sets the FORCE parameter accordingly.
Cheers, Edi.
On Thu, 04 Aug, 2005 at 00:44:49 +0200, Edi Weitz wrote:
But HTML-TEMPLATE does not check whether files included in the template have changed. It's a bug.
No, it isn't. The docs clearly say that the included file "is implicitely converted into a template printer AT GENERATION TIME."
Oh, yes ! But what a sense to check only one of many templates while they all take a part in the template printer generation ?
Also it would be nice to have a feature to completely disable the cache, so that HTML-TEMPLATE will always regenerate template printer. It would be useful in a development process.
See the documentation for CREATE-TEMPLATE-PRINTER - specifically the :DO-NOT-CACHE keyword. If you're sure you'll never want to use the cache write an :AROUND method for CREATE-TEMPLATE-PRINTER which sets the FORCE parameter accordingly.
Yes, it is another way. But with a parameter it would be more easily. I am not sure about the cache.
-- Registered Linux User #124759
On Fri, 5 Aug 2005 22:28:12 +1100, Igor Plekhov penguin@ocean.vvo.ru wrote:
But what a sense to check only one of many templates while they all take a part in the template printer generation ?
This is an optimization for performance. While you're still developing you can disable the cache and as a result the included templates will be reloaded as well.
Cheers, Edi.
On Fri, 5 Aug 2005 22:28:12 +1100, Igor Plekhov penguin@ocean.vvo.ru wrote:
Yes, it is another way. But with a parameter it would be more easily.
I've just released a new version (0.3.1) which offers this new setting:
http://weitz.de/html-template/#*force-default*
ChangeLog:
Version 0.3.1 2005-08-05 Introduced *FORCE-DEFAULT*
Download:
http://weitz.de/files/html-template.tar.gz
Cheers, Edi.
html-template-devel@common-lisp.net