diff options
author | Ben Connors <benconnors@outlook.com> | 2019-09-01 16:45:43 -0400 |
---|---|---|
committer | Ben Connors <benconnors@outlook.com> | 2019-09-01 16:45:43 -0400 |
commit | 4eb082506ba9943e63c7a4ac565e98586bc180e6 (patch) | |
tree | bbff71d87077102702e5c3e0e0901f33ec4c1f17 /test.py |
Initial commit
Diffstat (limited to 'test.py')
-rwxr-xr-x | test.py | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -0,0 +1,12 @@ +#!/usr/bin/env python3 + +from epub3 import Book, Page + +from lxml import etree + +p = Page("Test Page", [("h1", "Test Page"), ("p", "This is a test page"), ("ol", ("", (("li", "1"), ("li", "2"))))]) + +book = Book("Test Book", "Nobody") +book.pages.append(p) + +book.generate_epub() |