def context_processor(self, fn):
        """
        Registers a template context processor function.
        """
        self._defer(lambda app: app.context_processor(fn))
        return fn
Registers a template context processor function.