@split.record<EOL>def init_app(state):
app = state.app<EOL>app.config.setdefault('<STR_LIT>', False)<EOL>app.config.setdefault('<STR_LIT>', False)<EOL>app.config.setdefault('<STR_LIT>', [])<EOL>app.config.setdefault('<STR_LIT>', r"""<STR_LIT>""")<EOL>app.jinja_env.globals.update({<EOL>'<STR_LIT>': ab_test,<EOL>'<STR_LIT>': finished<EOL>})<EOL>@app.template_filter()<EOL>def percentage(number):<EOL><INDENT>number *= <NUM_LIT:100><EOL>if abs(number) < <NUM_LIT:10>:<EOL><INDENT>return "<STR_LIT>" % round(number, <NUM_LIT:1>)<EOL><DEDENT>else:<EOL><INDENT>return "<STR_LIT>" % round(number)<EOL><DEDENT><DEDENT>
Prepare the Flask application for Flask-Split.

:param state: :class:`BlueprintSetupState` instance