summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbottle.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bottle.py b/bottle.py
index ff94536..055c823 100755
--- a/bottle.py
+++ b/bottle.py
@@ -2658,10 +2658,9 @@ class SimpleTemplate(BaseTemplate):
eval(self.co, env)
if '_rebase' in env:
subtpl, rargs = env['_rebase']
- subtpl = self.__class__(name=subtpl, lookup=self.lookup)
rargs['_base'] = _stdout[:] #copy stdout
del _stdout[:] # clear stdout
- return subtpl.execute(_stdout, rargs)
+ return self.subtemplate(subtpl,_stdout,rargs)
return env
def render(self, *args, **kwargs):