render

package
v0.0.0-...-6cf3fe2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PongoHTML

type PongoHTML struct {
	Template *pongo2.Template
	Name     string
	Data     pongo2.Context
}

PongoHTML strcut

func (*PongoHTML) Render

func (p *PongoHTML) Render(w http.ResponseWriter) error

Render for gin interface render override

func (*PongoHTML) WriteContentType

func (p *PongoHTML) WriteContentType(w http.ResponseWriter)

WriteContentType for gin interface WriteContentType override

type PongoRender

type PongoRender struct {
	TmplDir string
}

PongoRender struct init

func TemplatePath

func TemplatePath(tmplDir string) *PongoRender

TemplatePath html files path

func (*PongoRender) Instance

func (p *PongoRender) Instance(name string, data interface{}) render.Render

Instance init

Jump to

Keyboard shortcuts

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