From: <Web...@St...> - 2004-07-22 09:38:35
|
On Thu, 22 Jul 2004, Sebastian Kanthak wrote: | Hi, | | I added a facility to include global macros into every template. Just put a | space separated list of files you'd like to load macros from into a | "Macros.Include" configuration setting. See my description on the | MacroDirective Wiki page. | | The whole thing is done, by parsing the templates at initialization time of | the broker, store their macros into a map and put the contents of this map | into every template's BuildContext in WMTemplate.java. | | Any concerns about this? A unit-test is included. These won't ever be reloaded, then? A macro-template won't be reloaded unless it is timed out, and these won't ever be reloaded? I'd love to be able to reconfigure everything about WebMacro runtime, including whether the cache should be cleared etc. I just realized, of course, that I could potentially just make a entirely new WM instance and thus that would use all the new configurations, with new cache and all. One more user-level question: How are the templates cached, regarding the other discussion? Are they cached after they are parsed/compiled? Or are the cache just a cache of the content of file? Or are there maybe a two-level cache?! I assume the first, really.. Endre |