|
From: Sven S. <sv...@sc...> - 2005-09-26 13:50:14
|
Hi,
I just finished my custom template loader for webmacro. Goal of it is
context-based template loading and internationalization . It takes a
template name ("index" for example), determines the directory where the
appropriate version resides and adds an internationalization suffix.
example:
Template "index" in the context of the site "testSite" for language "en"
results in "testSite/index_en.wm" to be loaded.
Works perfect. At least as long as I deactivate caching.
Cause unfortunately the CacheManager/Provider/whatever does not get
notice of that the template name changed. So it returns the en-version
when the de-version should be loaded and so on...
Is there a way to let the CacheManager/Provider/whatever know about the
changed template name?
I also tried to work around this and not determine the resulting name
_inside_ the loader but call the loader with the already computed name.
This works as intended but leaves include-directives untouched.
Thanks in advance for your help!
Sven
|