templates

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Box

func Box(box *rice.Box)

func Get

func Get(k string) (*template.Template, []string, []string)
func WithLinks(l []Link) func(*Page)

func WithScripts

func WithScripts(s []string) func(*Page)

Types

type Link struct {
	Name string
	Link string
}

type Page

type Page struct {
	Links       []Link
	Scripts     []string
	Stylesheets []string
	// contains filtered or unexported fields
}

func NewPage

func NewPage(name, template string, opts ...func(*Page)) Page
func (p *Page) AddLinks(l []Link)

func (*Page) AddScripts

func (p *Page) AddScripts(s []string)

func (*Page) AddStylesheets

func (p *Page) AddStylesheets(s []string)

func (*Page) Name

func (p *Page) Name() string

func (*Page) Template

func (p *Page) Template() string

Jump to

Keyboard shortcuts

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