templates

package
v0.0.0-...-0b17b06 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTMLTemplates = filter.Keep(http.Dir("./web/"), func(filepath string, file os.FileInfo) bool {
	if file.IsDir() {
		return true
	}
	if path.Ext(filepath) == ".html" {
		return true
	}
	return false
})
View Source
var TemplateFileSystem = HTMLTemplates

TemplateFileSystem contains the template files and maps to a native filesystem during development

Functions

func Render

func Render(w io.Writer, data interface{}, templatename string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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