/nim-epub

An epub generation and exportation library for nim; it's not meant to be able to read and navigate EPUBs

Primary LanguageNimApache License 2.0Apache-2.0

Example: [code] import ./src/EPUB import ./src/EPUB/Types/genericTypes

import strutils

var epub: Epub = Epub(title: "Shu", author: "test")

var path: string = "./hercu.epub" discard epub.StartEpubExport(path)

var page: Page = Page(id: $0, text: "Hello, World!", fileName: "hello.xhtml", location: "heckifIknow")

discard epub.AddPage(page)

discard epub.EndEpubExport("hhhh", "Shu") [/code]