Environment added.

This commit is contained in:
retoor 2025-02-10 00:39:18 +01:00
parent 72e042ed8a
commit a203ece6a4

View File

@ -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()