X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b9dc6590aa12ae1b04e11dbb57684c5630c1e3bd..f99929a3fa250a4d39388013b990334ae1f7c779:/src/api/emitters.py diff --git a/src/api/emitters.py b/src/api/emitters.py index 36babb2bf..531ae19bb 100644 --- a/src/api/emitters.py +++ b/src/api/emitters.py @@ -69,3 +69,11 @@ class SsiXmlEmitter(SsiEmitterMixin, XMLEmitter): ''.join(self.construct().get_ssis('xml')) Emitter.register('xml', SsiXmlEmitter, 'text/xml; charset=utf-8') + + +# hack +class EpubEmitter(Emitter): + def render(self, request): + return self.data + +Emitter.register('epub', EpubEmitter, 'application/epub+zip')