def init_app(self, app):
        if not hasattr(app, 'extensions'):
            app.extensions = {}

        app.extensions['nav'] = self
        app.add_template_global(self.elems, 'nav')

        # register some renderers
        for args in self._renderers:
            register_renderer(app, *args)
See parent class documentation
dataset/ETHPy150Open mbr/flask-nav/flask_nav/__init__.py/Nav.init_app--crossover with--dataset/ETHPy150Open AppScale/appscale/InfrastructureManager/utils/persistent_dictionary.py/FileSystemBasedPersistentStore.save_all_entries