html

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accepts added in v0.2.3

func Accepts(r *http.Request, kind string) bool

Accepts checks is a request accept content of a specified kind

Types

type Page

type Page struct {
	ServicesList []string
	Detail       string
	Domain       string
	Partial      Partial
	Inner        _template.HTML
}

Page wraps a page content to be used by the application

func (*Page) Render

func (p *Page) Render(w http.ResponseWriter) error

Render renders an application page using templates

type Partial

type Partial struct {
	Data     interface{}
	Template string
}

Partial page to add to the application page

func (*Partial) Render

func (c *Partial) Render() (_template.HTML, error)

Render a partial web page into a usable template.HTML

Jump to

Keyboard shortcuts

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