Fix table render
This commit is contained in:
parent
71949c087b
commit
d34bab7586
17
app.py
17
app.py
|
@ -28,13 +28,16 @@ def inject_now():
|
||||||
|
|
||||||
|
|
||||||
def render(filename):
|
def render(filename):
|
||||||
if filename in renders:
|
return Markup(markdown(
|
||||||
return renders[filename]
|
"".join(open("data/"+filename, encoding="UTF-8").readlines()),
|
||||||
else:
|
use_file_vars=True,
|
||||||
ren = Markup(markdown(
|
extras=["use-file-vars", "tables"]))
|
||||||
"".join(open("data/"+filename, encoding="UTF-8").readlines())))
|
# if filename in renders:
|
||||||
renders[filename] = ren
|
# return renders[filename]
|
||||||
return ren
|
# else:
|
||||||
|
# ren = ""
|
||||||
|
# renders[filename] = ren
|
||||||
|
# return ren
|
||||||
|
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
|
|
Loading…
Reference in a new issue