Environment added.
This commit is contained in:
parent
72e042ed8a
commit
a203ece6a4
@ -85,7 +85,7 @@ class TemplateView(BaseView):
|
|||||||
"<body>{% markdown %}"+content+"{% endmarkdown %}</body>",
|
"<body>{% markdown %}"+content+"{% endmarkdown %}</body>",
|
||||||
"</html>"
|
"</html>"
|
||||||
])
|
])
|
||||||
with open(".temp.html", "w+") as f:
|
with open(".temp.html", "w+") as f:
|
||||||
f.write(markdown_default_page)
|
f.write(markdown_default_page)
|
||||||
content = aiohttp_jinja2.render_string(".temp.html",self.request,context=context)
|
content = aiohttp_jinja2.render_string(".temp.html",self.request,context=context)
|
||||||
pathlib.Path(".temp.html").unlink()
|
pathlib.Path(".temp.html").unlink()
|
||||||
|
Loading…
Reference in New Issue
Block a user