Documentation
¶
Overview ¶
Package cover generates and renders book cover pages. It builds a styled HTML cover from book metadata such as title, author, and version.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoverGenerator ¶
type CoverGenerator struct {
// contains filtered or unexported fields
}
CoverGenerator builds the HTML cover page.
func NewCoverGenerator ¶
func NewCoverGenerator(meta config.BookMeta) *CoverGenerator
NewCoverGenerator creates a new cover generator from book metadata.
func (*CoverGenerator) RenderHTML ¶
func (cg *CoverGenerator) RenderHTML() string
RenderHTML returns a self-contained HTML cover page.
Click to show internal directories.
Click to hide internal directories.