page

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultJavascript

func GetDefaultJavascript() []string

func GetDefaultStylesheets

func GetDefaultStylesheets() []string

func SetDefaultJavascript

func SetDefaultJavascript(javascript []string)

func SetDefaultStylesheets

func SetDefaultStylesheets(stylesheets []string)

func SetSiteTitle

func SetSiteTitle(title string)

func TemplateSet

func TemplateSet(name string) *template.Template

func TemplateSubdirMust

func TemplateSubdirMust(name string)

Types

type Page

type Page struct {
	Title       string
	Javascript  []string
	Stylesheets []string
	Vars        map[string]interface{}
	SiteTitle   string
}

func NewPage

func NewPage() Page

func (*Page) AddCSSFiles

func (p *Page) AddCSSFiles(file ...string)

func (*Page) AddJSFiles

func (p *Page) AddJSFiles(file ...string)

func (*Page) AddVar

func (p *Page) AddVar(name string, variable interface{})

func (*Page) GetCSSFiles

func (p *Page) GetCSSFiles() []string

func (*Page) GetJSFiles

func (p *Page) GetJSFiles() []string

func (*Page) GetTitle

func (p *Page) GetTitle() string

func (*Page) SetTitle

func (p *Page) SetTitle(title string)

Jump to

Keyboard shortcuts

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