X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9a938c8b406ce05e3bca4a5a483d473ece9e17b0..0def7bcb965d56cfa88c7e5a1676905b02f84ab6:/src/api/emitters.py?ds=inline 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')