views

package
v0.0.0-...-ca6517d Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TplFs embed.FS
View Source
var Views = map[string]*template.Template{}

Functions

func Init

func Init()

func New

func New(name string, dir string) *template.Template

New 创建普通模板

func NewFS

func NewFS(name string, fs embed.FS) *template.Template

NewFS 创建虚拟模板

Types

type Template

type Template struct{}

Template 模板引擎

func Render

func Render() *Template

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Jump to

Keyboard shortcuts

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