view

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

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, siteKeywords string)

Jump to

Keyboard shortcuts

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