Documentation ¶
Overview ¶
Package templates generates and stores HTML templates
Index ¶
- Variables
- func Board(w io.Writer, b, theme string, page, total int, pos common.ModerationLevel, ...)
- func CalculateOmit(t common.Thread) (int, int)
- func ChangePassword(w io.Writer)
- func Compile() error
- func ConfigureBoard(w io.Writer, conf config.BoardConfigs)
- func ConfigureServer(w io.Writer, conf config.Configs)
- func Recompile() error
- func StaffAssignment(w io.Writer, staff [3][]string)
- func Thread(w io.Writer, id uint64, board, title, theme string, abbrev, locked bool, ...)
Constants ¶
This section is empty.
Variables ¶
View Source
var GetPostModLog func(id uint64) (mLog []auth.ModLogEntry, err error)
GetPostModLog forwards db.GetPostModLog to avoid cyclic imports in cache
Functions ¶
func Board ¶
func Board(w io.Writer, b, theme string, page, total int, pos common.ModerationLevel, minimal, catalog bool, threadHTML []byte, )
Board writes board HTML to w
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 injects dynamic variables, hashes and stores compiled templates
func ConfigureBoard ¶
func ConfigureBoard(w io.Writer, conf config.BoardConfigs)
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.