layout

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bootstrap *template.Template

Functions

func InitBootstrap

func InitBootstrap(dir string, parent string, funcs template.FuncMap)

func Render

func Render(c *gin.Context, name string, args ...map[string]interface{})

Types

type LayoutParams

type LayoutParams struct {
	Header             map[string]interface{}
	Data               map[string]interface{}
	Footer             map[string]interface{}
	TemplateName       string
	HeaderTemplateName string
	FooterTemplateName string
	Template           *template.Template
}

func New

func New(name string, args ...map[string]interface{}) *LayoutParams

func (*LayoutParams) Render

func (p *LayoutParams) Render(c *gin.Context)

Jump to

Keyboard shortcuts

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