diff options
-rw-r--r-- | CHANGES | 6 | ||||
-rw-r--r-- | mako/cache.py | 6 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,9 @@ +0.6.1 +- [bug] Added special compatibility for the 0.5.0 + Cache() constructor, which was preventing file + version checks and not allowing Mako 0.6 to + recompile the module files. + 0.6.0 - [feature] Template caching has been converted into a plugin diff --git a/mako/cache.py b/mako/cache.py index 6688a56..959640e 100644 --- a/mako/cache.py +++ b/mako/cache.py @@ -60,7 +60,11 @@ class Cache(object): """ - def __init__(self, template): + def __init__(self, template, *args): + # check for a stale template calling the + # constructor + if isinstance(template, basestring) and args: + return self.template = template self.id = template.module.__name__ self.starttime = template.module._modified_time |