Documentation
¶
Index ¶
- Variables
- func AsTmpl(name, body string) string
- func MakeFuncMap() map[string]interface{}
- func MustHtmlTemplate(s string) *htmlTmpl.Template
- func MustRenderHtml(tmplBody string, values any, tmplName string) htmlTmpl.HTML
- func ParseAsHtmlTemplate(s string) (*htmlTmpl.Template, error)
- func ParseAsTextTemplate(s string) (*textTmpl.Template, error)
- type ParamStructJsCss
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //go:embed common.css Css string //go:embed common.js Js string )
View Source
var ( ParamDefaultJsCss = ParamStructJsCss{ MdHost: "www.yourmom.com", MaxNavWordLength: 43, PathSave: session.PathSave, PathReload: session.PathReload, PathGetHtmlForFile: session.PathGetHtmlForFile, PathGetLabelsForFile: session.PathGetLabelsForFile, PathRunBlock: session.PathRunBlock, KeyMdFileIndex: session.KeyMdFileIndex, KeyBlockIndex: session.KeyBlockIndex, KeyIsTitleOn: session.KeyIsTitleOn, KeyIsNavOn: session.KeyIsNavOn, KeyMdSessID: session.KeyMdSessID, MdSessID: "notARealSessId", TransitionSpeedMs: 250, } )
Functions ¶
func MakeFuncMap ¶
func MakeFuncMap() map[string]interface{}
MakeFuncMap makes a string to function map for use in Go template rendering.
func MustHtmlTemplate ¶
func MustRenderHtml ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.