Fix table render

This commit is contained in:
Julius de Jeu 2019-06-12 09:09:59 +02:00
parent 71949c087b
commit d34bab7586

17
app.py
View file

@ -28,13 +28,16 @@ def inject_now():
def render(filename):
if filename in renders:
return renders[filename]
else:
ren = Markup(markdown(
"".join(open("data/"+filename, encoding="UTF-8").readlines())))
renders[filename] = ren
return ren
return Markup(markdown(
"".join(open("data/"+filename, encoding="UTF-8").readlines()),
use_file_vars=True,
extras=["use-file-vars", "tables"]))
# if filename in renders:
# return renders[filename]
# else:
# ren = ""
# renders[filename] = ren
# return ren
@app.route('/')