def register_renderer(self, renderer, default=False):

        if not (hasattr(renderer, '_is_pushrod_renderer') and renderer._is_pushrod_renderer):
            raise TypeError(u'Got passed an invalid renderer')

        for name in renderer.renderer_names:
            self.named_renderers[name] = renderer

        for mime_type in renderer.renderer_mime_types:
            self.mime_type_renderers[mime_type] = renderer
Registers a renderer with the Pushrod resolver (can also be done by passing the renderer to the constructor).
dataset/ETHPy150Open teozkr/Flask-Pushrod/flask_pushrod/resolver.py/Pushrod.register_renderer