# @name: offrecord.py # @creation_date: 2022-10-27 # @license: The MIT License # @author: Simon Bowie # @purpose: offrecord route for Section 4: Off the record # @acknowledgements: from flask import Blueprint, render_template import markdown offrecord = Blueprint('offrecord', __name__) # route for Martha Gowans page @offrecord.route('/offrecord/') def index(): with open('content/section_4/I-Martha-gowans.md', 'r') as f: text = f.read() text = markdown.markdown(text) return render_template('offrecord.html', text=text)