after_request handler for compiling the compass projects with
        each request.

def after_request(self, response):
        """
        after_request handler for compiling the compass projects with
        each request.
        """
        if response is not None and request is not None:
            # When used as response processor, only run if we are requesting
            # anything but a static resource.
            if request.endpoint in [None, "static"]:
                return response
        self.compile()
        return response