templates

package
v4.1.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2017 License: AGPL-3.0, AGPL-3.0-or-later Imports: 14 Imported by: 0

Documentation

Overview

Package templates generates and stores HTML templates

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Board

func Board(
	b string,
	ln lang.Pack,
	minimal, catalog bool,
	threadHTML []byte,
) ([]byte, error)

Board renders board page HTML for noscript browsers. withIndex specifies, if the rendered board page should be embedded in the index page

func CalculateOmit

func CalculateOmit(t common.Thread) (int, int)

CalculateOmit returns the omitted post and image counts for a thread

func ChangePassword

func ChangePassword(ln lang.Pack) string

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

func ConfigureServer(conf config.Configs, ln lang.Pack) string

ConfigureServer renders the form for changing server configurations

func Thread

func Thread(ln lang.Pack, minimal bool, postHTML []byte) ([]byte, error)

Thread renders thread page HTML for noscript browsers

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL