~mdw
/
chopwood
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cgi.py: Export the template cache to the templates.
[chopwood]
/
cgi.py
diff --git
a/cgi.py
b/cgi.py
index
26295e0
..
b25d2d2
100644
(file)
--- a/
cgi.py
+++ b/
cgi.py
@@
-213,7
+213,7
@@
class TemplateFinder (object):
with open(OS.path.join(me._dir, key)) as f: tmpl = f.read()
me._cache[key] = tmpl
return tmpl
-TMPL = TemplateFinder(TMPLDIR)
+
STATE.kw['TMPL'] =
TMPL = TemplateFinder(TMPLDIR)
@CTX.contextmanager
def tmplkw(**kw):