view

package
v1.1.14 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: BSD-3-Clause Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func View

func View(name string, code int, data interface{}) (*content.TemplateResponse, error)

func WithDefault

func WithDefault(fs fs.FS, ext string, perfix ...string)

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}
var DefaultManager *Manager

func NewManager

func NewManager(fs fs.FS, ext string, perfix ...string) *Manager

func (*Manager) Get

func (m *Manager) Get(name string, code int, data interface{}) (*content.TemplateResponse, error)

func (*Manager) IsEmbed

func (m *Manager) IsEmbed() bool

func (*Manager) Parse added in v0.0.10

func (m *Manager) Parse(name string) ([]byte, error)

func (*Manager) Template

func (m *Manager) Template(name string) (*template.Template, error)

Jump to

Keyboard shortcuts

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