context

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TemplateRoot = "pages"

Functions

This section is empty.

Types

type TemplateContext

type TemplateContext struct {
	Vars    *jet.VarMap
	Context *map[string]interface{}

	Template *jet.Template

	TempatePath string
}

模板引擎配置

func InitTemplateContext

func InitTemplateContext(t *engine.TemplateEngine, c *gin.Context) *TemplateContext

初始化模板

func (*TemplateContext) FindTemplate

func (ctx *TemplateContext) FindTemplate(t *engine.TemplateEngine) error

Jump to

Keyboard shortcuts

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