template

package
v0.0.0-...-e77dc18 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TemplateLayoutPath  string
	TemplateIncludePath string
}

Config ...

type Template

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

Template ...

func NewTemplate

func NewTemplate(templateLayoutPath, templateIncludePath, mainTmpl string) *Template

NewTemplate ...

func (*Template) Fmap

func (t *Template) Fmap() template.FuncMap

Fmap ...

func (*Template) Init

func (t *Template) Init()

Init ...

func (*Template) RenderJs

func (t *Template) RenderJs(w http.ResponseWriter, name string, data interface{})

RenderJs ...

func (*Template) RenderTemplate

func (t *Template) RenderTemplate(w http.ResponseWriter, name string, data interface{})

RenderTemplate ...

Jump to

Keyboard shortcuts

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