html

package
v0.0.0-...-e9625fd Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRenderHandler

NewRenderHandler returns Renderer. optionally you can pass output data.

Types

type HTMLRenderHandler

type HTMLRenderHandler struct {
	Output interface{}
	// contains filtered or unexported fields
}

Renderer represents html rendering

func (*HTMLRenderHandler) Handle

func (r *HTMLRenderHandler) Handle() error

Handle generate http template.

type Header struct {
	Title string
}

func NewHeader

func NewHeader(t string) Header

type Layout

type Layout struct {
	Header Header
	Output interface{}
}

func NewLayout

func NewLayout(h Header, o interface{}) Layout

type RenderOutputOptions

type RenderOutputOptions func(*HTMLRenderHandler)

RenderOutputOptions represents New Renderer options func

func WithOutput

func WithOutput(o interface{}) RenderOutputOptions

WithOutput set optional output data.

Jump to

Keyboard shortcuts

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