code: def init_blueprint(self, app):
          
          self.blueprint = Blueprint(
              self.name,
              self.name,
              template_folder=resource_filename("capitains_nautilus", "data/templates"),
              url_prefix=self.prefix
          )
  
          # Register routes
          for url, name, methods, extension_name in self.ROUTES:
              self.blueprint.add_url_rule(
                  url,
                  view_func=self.view(name, extension_name),
                  endpoint=name[2:],
                  methods=methods
              )
  
          app.register_blueprint(self.blueprint)
          return self.blueprint
docs: Properly generates the blueprint, registering routes and filters and connecting the app and the blueprint
  
          :return: Blueprint of the extension
          :rtype: Blueprint