render

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DateFormat added in v1.9.0

func DateFormat(s string) template.HTML

func DateFormatYYYYMMDD added in v1.9.0

func DateFormatYYYYMMDD(s string) template.HTML

func DomainSetLang added in v1.9.0

func DomainSetLang(domain string, uri string, language string) string

func Handler

func Handler(w http.ResponseWriter, req *http.Request, page interface{}, page2 *model.Page, templateName string, f func(), cfg config.Config)

Handler resolves the rendering of a specific pagem with a given model and template name

func HumanSize added in v1.9.0

func HumanSize(size string) (string, error)

func InitLocaleBundle added in v1.9.0

func InitLocaleBundle() (*i18n.Bundle, error)

InitLocaleBundle is used to initialise the locale bundle

func InitLocalizer added in v1.9.0

func InitLocalizer() map[string]*i18n.Localizer

InitLocalizer is used to initialise the localizer

func Last added in v1.9.0

func Last(x int, a interface{}) bool

func LegacyDataSetDownloadURI added in v1.9.0

func LegacyDataSetDownloadURI(pageURI, filename string) string

LegacyDataSetDownloadURI builds a URI string for a legacy dataset download URI.

func Localise added in v1.9.0

func Localise(key string, language string, plural int, templateArguments ...string) string

Localise localises text based on a key

func Loop added in v1.9.0

func Loop(n, m int) []int

func Markdown added in v1.9.0

func Markdown(md string) template.HTML

Markdown converts markdown to HTML

func SafeHTML added in v1.9.0

func SafeHTML(s string) template.HTML

func Slug added in v1.9.0

func Slug(s string) string

func Subtract added in v1.9.0

func Subtract(x, y int) int

Types

This section is empty.

Jump to

Keyboard shortcuts

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