Documentation ¶
Index ¶
- Constants
- func GenerateArticle(article Article) string
- func GenerateContents(feed Feed) string
- func GenerateManifest(feed Feed) (string, []string)
- func GenerateNavMain(feed Feed) string
- func GenerateOpf(feed Feed, manifest string, spine string) string
- func GenerateSpine(feed Feed) string
- func MakeMain(feed Feed) string
- type Article
- type Feed
- type Section
Constants ¶
View Source
const ArticleTmpl = `` /* 208-byte string literal not displayed */
ArticleTmpl ...
View Source
const ContentArticleTmpl = `<li><a href="%s">%s</a></li>`
ContentArticleTmpl ...
View Source
const ContentPageTmpl = `` /* 191-byte string literal not displayed */
ContentPageTmpl ...
View Source
const ContentSectionTmpl = `<h4>%s</h4><ul>%s</ul>`
ContentSectionTmpl ...
View Source
const ImageTagRegex = `<img\s[^>]*?src\s*=\s*['\"]([^'\"]*?)['\"][^>]*?>`
ImageTagRegex ...
View Source
const ImageTagTmpl = `<p><img src="%s.jpg" middle="true" style="margin-bottom: 20px"></p>`
ImageTagTmpl ...
View Source
const ManifestItemTmpl = `<item href="%s" media-type="%s" id="%s"/>`
ManifestItemTmpl ...
NavArticleTmpl ...
NavHeaderTmpl ...
NavMainTmpl ...
NavMapTmpl ...
NavSectionTmpl ...
View Source
const OpfTmpl = `` /* 790-byte string literal not displayed */
OpfTmpl ...
View Source
const SpineTmpl = `<itemref idref="%s"/>`
SpineTmpl ...
Variables ¶
This section is empty.
Functions ¶
func GenerateOpf ¶
GenerateOpf ...
Types ¶
Click to show internal directories.
Click to hide internal directories.