templating

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

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

Go to latest
Published: Nov 23, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Template

func Template(templatePath TemplatePath, data interface{}) (string, error)

Template ... given a template path and data, return the rendered template

Types

type TemplateIndexObject

type TemplateIndexObject struct {
	SiteTitle string
	Path      string
}

TemplateIndexObject ... fields for the index template

type TemplateListingObject

type TemplateListingObject struct {
	SiteTitle string
	Path      string
	Items     []minio.ObjectInfo
}

TemplateListingObject ... fields for the list template

type TemplatePath

type TemplatePath string

TemplatePath ... valid paths for templates

const (
	TemplateListing TemplatePath = "templates/listing.html"
	TemplateIndex   TemplatePath = "templates/index.html"
)

template types

Jump to

Keyboard shortcuts

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