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: config.Dynamic(config.RouteSave), PathReload: config.Dynamic(config.RouteReload), PathGetHtmlForFile: config.Dynamic(config.RouteHtmlForFile), PathGetLabelsForFile: config.Dynamic(config.RouteLabelsForFile), PathRunBlock: config.Dynamic(config.RouteRunBlock), KeyMdFileIndex: config.KeyMdFileIndex, KeyBlockIndex: config.KeyBlockIndex, KeyIsTitleOn: config.KeyIsTitleOn, KeyIsNavOn: config.KeyIsNavOn, KeyMdSessID: config.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.