from flask import Blueprint, render_template import os import markdown2 blueprint = Blueprint('docs', __name__) @blueprint.route('/') def index(): content = open((os.path.join(os.path.dirname(__file__), '..', '..', 'README.md'))).read() content = markdown2.markdown(content) return render_template('readme.html', content=content)