Documentation ¶
Overview ¶
Package templates generates and stores HTML templates
Index ¶
- func Board(b string, ln lang.Pack, minimal, catalog bool, threadHTML []byte) []byte
- 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 StaffAssignment(staff [3][]string, ln lang.Pack) string
- func Thread(ln lang.Pack, id uint64, board string, minimal bool, postHTML []byte) []byte
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
func StaffAssignment ¶
StaffAssignment renders a staff assignment form with the current staff already filled in
Types ¶
This section is empty.