render

package
v0.0.0-...-3459f18 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HomePost

type HomePost struct {
	Name string
}

type HomeRender

type HomeRender struct {
	Posts []HomePost
	Meta  Metadata
}

type Metadata

type Metadata struct {
	Title  string
	Author string
}

type PageRender

type PageRender struct {
	HTML template.HTML
}

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

func New

func New(dir string, meta Metadata) (*Renderer, error)

func (*Renderer) RenderHomePage

func (re *Renderer) RenderHomePage(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func (*Renderer) RenderPostPage

func (re *Renderer) RenderPostPage(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

Jump to

Keyboard shortcuts

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