template

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Templ

type Templ struct {
	// Global template for HTML rendering.
	// This template will be used to render all Amis components.
	AmisTempl   *template.Template
	AmisVersion string
	AmisBaseURL string
	Themes      []conf.Theme

	Locales []conf.Local
	// contains filtered or unexported fields
}

func New

func New() *Templ

func (*Templ) CurrentI18n added in v0.11.9

func (t *Templ) CurrentI18n() any

func (*Templ) CurrentLocale added in v0.11.9

func (t *Templ) CurrentLocale() string

func (*Templ) CurrentTheme added in v0.11.9

func (t *Templ) CurrentTheme() string

func (*Templ) GetLocales added in v0.11.9

func (t *Templ) GetLocales() []conf.Local

func (*Templ) SetLocales added in v0.11.9

func (t *Templ) SetLocales(ls []conf.Local)

func (*Templ) UpdateLocale added in v0.11.9

func (t *Templ) UpdateLocale(name string)

func (*Templ) UpdateTheme added in v0.11.9

func (t *Templ) UpdateTheme(name string)

Jump to

Keyboard shortcuts

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