<s> import random <EOL> from flask import Blueprint , Response , render_template <EOL> from . _common import GITHUB_SLUG , get_tid , samples <EOL> blueprint = Blueprint ( '<STR_LIT:index>' , __name__ , url_prefix = "<STR_LIT:/>" ) <EOL> @ blueprint . route ( "<STR_LIT>" ) <EOL> def get_index ( ) : <EOL> template_images = list ( samples ( blank = True ) ) <EOL> sample_images = list ( samples ( ) ) <EOL> return Response ( render_template ( <EOL> "<STR_LIT>" , <EOL> template_images = template_images , <EOL> default_template = random . choice ( template_images ) [ '<STR_LIT:key>' ] , <EOL> sample_images = sample_images , <EOL> github_slug = GITHUB_SLUG , <EOL> ga_tid = get_tid ( ) , <EOL> ) ) <EOL> @ blueprint . route ( "<STR_LIT>" ) <EOL> def get_javascript ( ) : <EOL> return Response ( render_template ( <EOL> "<STR_LIT>" , <EOL> ga_tid = get_tid ( ) , <EOL> ) ) </s>
