@@ -0,0 +1,480 @@
+import gzip%0A%0Afrom .base import Mangler, SourceFile%0A%0A%0Aclass GzipMangler(Mangler):%0A    def __init__(self, target, extensions=None):%0A        self.extensions = extensions or %5B'.css', '.js'%5D%0A%0A    def can_process(self, file_obj):%0A        return file_obj.path.suffix in self.extensions%0A%0A    def process_file(self, file_obj):%0A        content = gzip.compress(file_obj.content)%0A        new_file = file_obj.fork(file_obj.path + '.gz', content)%0A        yield orig_file%0A        yield new_file%0A

Add gzip manger. Change API to allow multiple files from a mangler