summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2012-11-21 15:54:32 +0100
committerMarcel Hellkamp <marc@gsites.de>2012-11-21 15:54:32 +0100
commit4dfaac68519cc6786f6960360e82eb2073700d89 (patch)
tree841f2a2a60b82c4d328fa7a7685b5518cb37d99e
parent7b5aac96fc57b5016ba159085f9ff982a4b3afe5 (diff)
downloadbottle-4dfaac68519cc6786f6960360e82eb2073700d89.tar.gz
Fix #405: Templates are not cached properly.
-rw-r--r--bottle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bottle.py b/bottle.py
index e628f3e..f6790ca 100644
--- a/bottle.py
+++ b/bottle.py
@@ -3099,7 +3099,7 @@ def template(*args, **kwargs):
adapter = kwargs.pop('template_adapter', SimpleTemplate)
lookup = kwargs.pop('template_lookup', TEMPLATE_PATH)
tplid = (id(lookup), tpl)
- if tpl not in TEMPLATES or DEBUG:
+ if tplid not in TEMPLATES or DEBUG:
settings = kwargs.pop('template_settings', {})
if isinstance(tpl, adapter):
TEMPLATES[tplid] = tpl