diff options
Diffstat (limited to 'mako/cache.py')
| -rw-r--r-- | mako/cache.py | 6 |
1 files changed, 5 insertions, 1 deletions
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 |
