def config_loader(app, **kwargs_config):
<EOL>local_templates_path = os.path.join(app.instance_path, '<STR_LIT>')<EOL>if os.path.exists(local_templates_path):<EOL><INDENT>app.jinja_loader = ChoiceLoader([<EOL>FileSystemLoader(local_templates_path),<EOL>app.jinja_loader,<EOL>])<EOL><DEDENT>app.jinja_options = dict(<EOL>app.jinja_options,<EOL>cache_size=<NUM_LIT:1000>,<EOL>bytecode_cache=BytecodeCache(app)<EOL>)<EOL>invenio_config_loader(app, **kwargs_config)<EOL>
Configuration loader.

    Adds support for loading templates from the Flask application's instance
    folder (``<instance_folder>/templates``).