4 app = flask.Flask(__name__)
10 @app.route('/p/<name>')
13 if not ch in 'abcdefghijklmnopqrstuvwxyz_0123456789':
17 with open('pages/{}.md'.format(name), 'r') as f:
18 content = commonmark.commonmark(f.read())
19 except FileNotFoundError as e:
22 title = name.replace('_', ' ').title()
24 return flask.render_template('page.html', content=content, title=title)