Browse Source

fixing table of contents page

solr_update
Simon Bowie 2 years ago
parent
commit
22fee95045
1 changed files with 1 additions and 6 deletions
  1. +1
    -6
      web/app/main.py

+ 1
- 6
web/app/main.py View File

# route for table of contents page # route for table of contents page
@main.route('/contents/') @main.route('/contents/')
def contents(): def contents():
with open('content/toc.md', 'r') as f:
with open('content/TOC.md', 'r') as f:
text = f.read() text = f.read()
text = markdown.markdown(text) text = markdown.markdown(text)
return render_template('text.html', text=text) return render_template('text.html', text=text)

@main.route('/test/')
def test():
text = "whatever"
return render_template('text.html', text=text)

Loading…
Cancel
Save