def render_template(self, template, **kwargs):
        """
            Use this method on your own endpoints, will pass the extra_args
            to the templates.

            :param template: The template relative path
            :param kwargs: arguments to be passed to the template
        """
        kwargs["base_template"] = self.appbuilder.base_template
        kwargs["appbuilder"] = self.appbuilder
        return render_template(
            template, **dict(list(kwargs.items()) + list(self.extra_args.items()))
        )
def render_template ( self , template , ** kwargs ) : kwargs [ "base_template" ] = self . appbuilder . base_template kwargs [ "appbuilder" ] = self . appbuilder return render_template ( template , ** dict ( list ( kwargs . items ( ) ) + list ( self . extra_args . items ( ) ) ) )
Use this method on your own endpoints, will pass the extra_args
            to the templates.

            :param template: The template relative path
            :param kwargs: arguments to be passed to the template