Browse Source

Joana changes to making pages

main
Simon Bowie 2 years ago
parent
commit
1fbed017fb
2 changed files with 14 additions and 2 deletions
  1. +2
    -2
      web/app/making.py
  2. +12
    -0
      web/app/templates/making.html

+ 2
- 2
web/app/making.py View File

with open('content/section_5/on-interface-design.md', 'r') as f: with open('content/section_5/on-interface-design.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('making.html', text=text)


# route for databases essay # route for databases essay
@making.route('/making/databases/') @making.route('/making/databases/')
with open('content/section_5/on-combining-databases-and-books.md', 'r') as f: with open('content/section_5/on-combining-databases-and-books.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('making.html', text=text)

+ 12
- 0
web/app/templates/making.html View File

<div class="making">
<a href="/contents/" class="arrow-back h1 text-left" title="back to index"> ⇽ </a>
{% extends "base.html" %}

{% block content %}

{{ text|safe }}

{% endblock %}

</div>

Loading…
Cancel
Save