Documentation ¶
Overview ¶
Package templates generates and stores HTML templates
Index ¶
- func Board(b string, ln lang.Pack, withIndex bool, threadHTML []byte) ([]byte, error)
- func BoardNavigation(lang map[string]string) string
- func CalculateOmit(t common.Thread) (int, int)
- func CatalogThreads(b common.Board) string
- 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 CreateBoard(ln lang.Pack) string
- func OwnedBoard(boards config.BoardTitles, lang map[string]string) string
- func StreamBoardNavigation(qw422016 *qt422016.Writer, lang map[string]string)
- func StreamCatalogThreads(qw422016 *qt422016.Writer, b common.Board)
- func StreamCreateBoard(qw422016 *qt422016.Writer, ln lang.Pack)
- func StreamOwnedBoard(qw422016 *qt422016.Writer, boards config.BoardTitles, lang map[string]string)
- func StreamThreadPosts(qw422016 *qt422016.Writer, t common.Thread, json []byte, omit, imageOmit int)
- func Thread(ln lang.Pack, withIndex bool, postHTML []byte) ([]byte, error)
- func ThreadPosts(t common.Thread, json []byte, omit, imageOmit int) string
- func WriteBoardNavigation(qq422016 qtio422016.Writer, lang map[string]string)
- func WriteCatalogThreads(qq422016 qtio422016.Writer, b common.Board)
- func WriteCreateBoard(qq422016 qtio422016.Writer, ln lang.Pack)
- func WriteOwnedBoard(qq422016 qtio422016.Writer, boards config.BoardTitles, lang map[string]string)
- func WriteThreadPosts(qq422016 qtio422016.Writer, t common.Thread, json []byte, omit, imageOmit int)
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 BoardNavigation ¶
func CalculateOmit ¶
CalculateOmit returns the omitted post and image counts for a thread
func CatalogThreads ¶
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 CreateBoard ¶
func OwnedBoard ¶
func OwnedBoard(boards config.BoardTitles, lang map[string]string) string
func StreamBoardNavigation ¶
func StreamOwnedBoard ¶
func StreamThreadPosts ¶
func WriteBoardNavigation ¶
func WriteBoardNavigation(qq422016 qtio422016.Writer, lang map[string]string)
func WriteCatalogThreads ¶
func WriteCatalogThreads(qq422016 qtio422016.Writer, b common.Board)
func WriteCreateBoard ¶
func WriteCreateBoard(qq422016 qtio422016.Writer, ln lang.Pack)
func WriteOwnedBoard ¶
func WriteOwnedBoard(qq422016 qtio422016.Writer, boards config.BoardTitles, lang map[string]string)
func WriteThreadPosts ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.