def include_static(name): """ Load a file from the /static/ directory """ desired_file = os.path.join(flask_app.static_folder, name) with open(desired_file) as f: return jinja2.Markup(f.read())