page

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2019 License: ISC Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseTemplate = "inc/base.html"

Can be adjusted to change the base template used in rendering

Functions

func PageHandler

func PageHandler(w http.ResponseWriter, r *http.Request)

func SetupHandlers

func SetupHandlers()

func StaticHandler

func StaticHandler() (h http.Handler)

Types

type Page

type Page struct {
	Name      string
	Head      string
	Body      string
	Date      *time.Time
	Published bool
}

func (*Page) Render

func (p *Page) Render(wr io.Writer) error

Jump to

Keyboard shortcuts

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