epubtemplates

package
v2.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package epubtemplates Templates use to create xml files of the EPUB.

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed "epub_templates_container.xml.tmpl"
	Container string

	//go:embed "epub_templates_applebooks.xml.tmpl"
	AppleBooks string

	//go:embed "epub_templates_style.css.tmpl"
	Style string

	//go:embed "epub_templates_text.xhtml.tmpl"
	Text string

	//go:embed "epub_templates_blank.xhtml.tmpl"
	Blank string
)

Functions

func Content

func Content(o *ContentOptions) string

Content create the content file

func Toc

func Toc(title string, hasTitle bool, stripFirstDirectoryFromToc bool, images []*epubimage.Image) string

Toc create toc

Types

type ContentOptions

type ContentOptions struct {
	Title        string
	HasTitlePage bool
	UID          string
	Author       string
	Publisher    string
	UpdatedAt    string
	ImageOptions *epuboptions.Image
	Cover        *epubimage.Image
	Images       []*epubimage.Image
	Current      int
	Total        int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL