view

package
v0.0.0-...-b615adf Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ARCHIVE string = "post.jet"
View Source
const CAT string = "home.jet"
View Source
const HOME string = "home.jet"
View Source
const NotFound string = "404.jet"
View Source
const PAGE string = "post.jet"
View Source
const TWEET string = "tweet.jet"

Variables

This section is empty.

Functions

This section is empty.

Types

type ViewRender

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

func NewViewRender

func NewViewRender(templateFolder string) *ViewRender

func (*ViewRender) GetVarMap

func (r *ViewRender) GetVarMap() jet.VarMap

func (*ViewRender) Render

func (r *ViewRender) Render(templateName string, vars jet.VarMap) (string, error)

func (*ViewRender) SetDefaultVar

func (r *ViewRender) SetDefaultVar(siteName string, siteURL string, siteDes string, siteFooter string)

Jump to

Keyboard shortcuts

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