summaryrefslogtreecommitdiff
path: root/panfry/templater.py
diff options
context:
space:
mode:
authorScott Bahling <sbahling@mudgum.net>2013-03-20 10:56:48 +0100
committerScott Bahling <sbahling@mudgum.net>2013-03-20 10:56:48 +0100
commitf2fb7c8dea7c381b803e9ca8d6616907285e92f9 (patch)
tree3da57962a6e8d2dc85ef85470535e9ac0d22ef1e /panfry/templater.py
parent6008dfc91c6361980cc855b4b3adc2ccedb25e5c (diff)
downloadpanfry-f2fb7c8dea7c381b803e9ca8d6616907285e92f9.tar.gz
panfry-f2fb7c8dea7c381b803e9ca8d6616907285e92f9.tar.xz
panfry-f2fb7c8dea7c381b803e9ca8d6616907285e92f9.zip
Add epub generation
Default to xelatex latex engine for pdf generation to handle utf-8 properly.
Diffstat (limited to 'panfry/templater.py')
-rwxr-xr-xpanfry/templater.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/panfry/templater.py b/panfry/templater.py
index c420a12..40fc17a 100755
--- a/panfry/templater.py
+++ b/panfry/templater.py
@@ -30,6 +30,7 @@ class Templater:
options = dict(toc=doc.toc_links)
options['page'] = unicode(page.htmlfile, "utf8")
options['pdf'] = unicode(doc.pdf_filename)
+ options['epub'] = unicode(doc.epub_filename)
options['prev'] = u''
options['next'] = u''
prevpage = doc.prev_page(page)