page

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDefaults

func InitDefaults(bp Page)

Types

type BasePage

type BasePage struct {
	component.BaseComponent
	Loader
}

func (*BasePage) GetHeader added in v0.0.2

func (bp *BasePage) GetHeader(key string) component.Component

func (*BasePage) GetTitle

func (bp *BasePage) GetTitle() string

func (*BasePage) SetHeader added in v0.0.2

func (bp *BasePage) SetHeader(key string, value component.Component)

func (*BasePage) SetTitle

func (bp *BasePage) SetTitle(title string)

type Loader

type Loader struct{}

func (*Loader) Load

func (ld *Loader) Load(content string) error

type Page

type Page interface {
	component.Component
	SetTitle(title string)
	GetTitle() string
	SetHeader(key string, value component.Component)
	GetHeader(key string) component.Component
	Load(content string) error
}

func NewBasePage

func NewBasePage() Page

func NewPage

func NewPage() Page

Jump to

Keyboard shortcuts

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