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