Documentation ¶
Overview ¶
Package templates generates and stores HTML templates
Index ¶
- func Board(b, theme string, page, total int, pos auth.ModerationLevel, ...) []byte
- func CalculateOmit(t common.Thread) (int, int)
- func ChangePassword() string
- func Compile() error
- func ConfigureBoard(conf config.BoardConfigs) string
- func ConfigureServer(conf config.Configs) string
- func StaffAssignment(staff [3][]string) string
- func Thread(id uint64, board, title, theme string, abbrev bool, pos auth.ModerationLevel, ...) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Board ¶
func Board( b, theme string, page, total int, pos auth.ModerationLevel, minimal, catalog bool, threadHTML []byte, ) []byte
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 ¶
func ChangePassword() string
ChangePassword renders a form for changing an account's password
func ConfigureBoard ¶
func ConfigureBoard(conf config.BoardConfigs) 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.
Click to show internal directories.
Click to hide internal directories.