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) |