statictheme

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2019 License: MIT Imports: 2 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

Types

type Page

type Page struct {
	aeridya.Page

	Templates []string
	PageTemp  *template.Template
}

func (*Page) Get

func (p *Page) Get(resp *aeridya.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 {
	Pages  map[string]aeridya.Paging
	Errors map[int]*template.Template

	TemplateDir string
}

func (Theme) Error

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

func (Theme) Parse

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

func (Theme) Serve

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

func (*Theme) StaticInit

func (t *Theme) StaticInit(base string) error

Jump to

Keyboard shortcuts

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