diff options
author | Marcel Hellkamp <marc@gsites.de> | 2009-07-17 23:33:47 +0200 |
---|---|---|
committer | Marcel Hellkamp <marc@gsites.de> | 2009-07-17 23:33:47 +0200 |
commit | a9c5e5a3598d74df292d20c5e0370c22c0e2500d (patch) | |
tree | 088c9abba9435bfda5c5e3ad1f32bde94c2053b4 | |
parent | e07d4abc19e337dc2f55024d242012663d979b52 (diff) | |
download | bottle-a9c5e5a3598d74df292d20c5e0370c22c0e2500d.tar.gz |
Fixed a bug with global and local namespaces in SimpleTemplate
-rw-r--r-- | bottle.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -659,7 +659,7 @@ class SimpleTemplate(BaseTemplate): ''' Returns the rendered template using keyword arguments as local variables. ''' args['stdout'] = [] args['_subtemplates'] = self.subtemplates - exec self.co in args, globals() + exec self.co in args return ''.join(args['stdout']) |