- 28
- 08月
Flask-Themes版本0.1.3, 主要提示无法找到模板文件,经过跟踪发现有个不知道算不算BUG的地方(330行):
def list_templates(self):
res = []
ctx = _request_ctx_stack.top
if USING_BLUEPRINTS and not self.as_blueprint:
fmt = '_themes/%s/%s'
else:
fmt = '%s/%s'
for ident, theme in ctx.app.theme_manager.themes.iteritems():
res.extend((fmt % (ident, t)).encode("utf8") for t in heme.jinja_loader.list_templates())
return ...