def badges_processor():
def badge_svg(title, value, color='<STR_LIT>'):<EOL><INDENT>"""<STR_LIT>"""<EOL>return generate_badge_svg(title, value, color)<EOL><DEDENT>def badge_png(title, value, color='<STR_LIT>'):<EOL><INDENT>"""<STR_LIT>"""<EOL>png = generate_badge_png(title, value, color)<EOL>png_base64 = b64encode(png)<EOL>return '<STR_LIT>'.format(png_base64)<EOL><DEDENT>return dict(<EOL>badge_svg=badge_svg,<EOL>badge_png=badge_png<EOL>)<EOL>
Context processor for badges.