ui

package
v1.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTMLDynamicLoad bool

HTMLDynamicLoad sets whether HTML templates are loaded every time they are used this allows rapid prototyping of changes

Functions

func PageAPI

func PageAPI() *template.Template

func PageCollection

func PageCollection() *template.Template

func PageCollections

func PageCollections() *template.Template

func PageConformance

func PageConformance() *template.Template

func PageFunction

func PageFunction() *template.Template

func PageFunctionItems

func PageFunctionItems() *template.Template

func PageFunctions

func PageFunctions() *template.Template

func PageHome

func PageHome() *template.Template

func PageItem

func PageItem() *template.Template

func PageItems

func PageItems() *template.Template

func RenderHTML

func RenderHTML(temp *template.Template, content interface{}, context interface{}) ([]byte, error)

RenderHTML tbd

Types

type PageData

type PageData struct {
	AppName    string
	AppVersion string
	// URLHome - URL for the service home page
	URLHome        string
	URLCollections string
	URLCollection  string
	URLFunctions   string
	URLFunction    string
	// URLItems is url for items HTML page
	URLItems string
	// URLItemsJSON is url for items JSON
	URLItemsJSON string
	// URLJSON is the url for the current page in JSON
	URLJSON         string
	Group           string
	Title           string
	Table           *data.Table
	IDColumn        string
	Function        *data.Function
	FeatureID       string
	ShowFeatureLink bool
}

PageData - data used on the HTML pages

func NewPageData

func NewPageData() *PageData

NewPageData create a page context initialized with globals.

Jump to

Keyboard shortcuts

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