static

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDir

func AddDir(tmpldir string, tmpls []string) []string

func ServePage added in v1.0.2

func ServePage(resp *core.Response, p page.Paging)

Types

type Page

type Page struct {
	page.Page

	Templates []string
	PageTemp  *template.Template
}

func (*Page) Get

func (p *Page) Get(resp *core.Response)

func (*Page) LoadPage

func (p *Page) LoadPage() error

func (*Page) PageInit

func (p *Page) PageInit(title, route, tmpldir string, tmpls ...string) error

type Theme

type Theme struct {
	theme.Theme
	Pages  map[string]page.Paging
	Errors map[int]*template.Template

	TemplateDir string
}

func (Theme) Error

func (t Theme) Error(resp *core.Response)

func (Theme) Parse

func (t Theme) Parse(input string, resp *core.Response) page.Paging

func (Theme) Serve

func (t Theme) Serve(resp *core.Response)

func (*Theme) StaticInit

func (t *Theme) StaticInit() error

Jump to

Keyboard shortcuts

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