Fix run command.
This commit is contained in:
parent
d31ba26f46
commit
1d7c2ce6fa
@ -55,6 +55,10 @@ class TemplateView(BaseView):
|
|||||||
context['json'] = await self.request.json()
|
context['json'] = await self.request.json()
|
||||||
except:
|
except:
|
||||||
context['json'] = None
|
context['json'] = None
|
||||||
|
if str(path.endswith('.md')):
|
||||||
|
renderer = MarkdownRenderer(self.request.app, path)
|
||||||
|
return web.Response(text=await renderer.render())
|
||||||
|
|
||||||
return await super().render_template(path, self.request)
|
return await super().render_template(path, self.request)
|
||||||
|
|
||||||
async def get(self):
|
async def get(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user