<s> from flask import render_template , Blueprint , Markup <EOL> def gist ( gist_id , ** kwargs ) : <EOL> script_url = '<STR_LIT>' . format ( gist_id ) <EOL> return Markup ( render_template ( '<STR_LIT>' , script_url = script_url ) ) <EOL> class Gist ( object ) : <EOL> def __init__ ( self , app = None , ** kwargs ) : <EOL> if app : <EOL> self . init_app ( app ) <EOL> def init_app ( self , app ) : <EOL> self . register_blueprint ( app ) <EOL> app . add_template_filter ( gist ) <EOL> app . add_template_global ( gist ) <EOL> def register_blueprint ( self , app ) : <EOL> module = Blueprint ( "<STR_LIT>" , __name__ , <EOL> template_folder = "<STR_LIT>" ) <EOL> app . register_blueprint ( module ) <EOL> return module </s>
