Documentation ¶
Overview ¶
Package templates generates and stores HTML templates
Index ¶
- func Board(b string, ln lang.Pack, minimal, catalog bool, threadHTML []byte) ([]byte, error)
- func CalculateOmit(t common.Thread) (int, int)
- func ChangePassword(ln lang.Pack) string
- func Compile() error
- func ConfigureBoard(conf config.BoardConfigs, ln lang.Pack) string
- func ConfigureServer(conf config.Configs, ln lang.Pack) string
- func Thread(ln lang.Pack, minimal bool, postHTML []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Board ¶
Board renders board page HTML for noscript browsers. withIndex specifies, if the rendered board page should be embedded in the index page
func CalculateOmit ¶
CalculateOmit returns the omitted post and image counts for a thread
func ChangePassword ¶
ChangePassword renders a form for changing an account's password
func Compile ¶
func Compile() error
Compile reads template HTML from disk, injects dynamic variables, hashes and stores them
func ConfigureBoard ¶
func ConfigureBoard(conf config.BoardConfigs, ln lang.Pack) string
ConfigureBoard renders a form for setting board configurations
func ConfigureServer ¶
ConfigureServer renders the form for changing server configurations
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.