html

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderShowNb

func RenderShowNb(w io.Writer, desc ShowNb, tpl *template.Template) error

Types

type Assets

type Assets struct {
	// contains filtered or unexported fields
}

func NewAssets

func NewAssets() *Assets

func (*Assets) LoadTemplate

func (r *Assets) LoadTemplate(name string) (*template.Template, error)

func (*Assets) StaticPathTo

func (r *Assets) StaticPathTo(subPath ...string) string

type ShowNb

type ShowNb struct {
	AssetRoot string
	Title     string
	Subtitle  string
	CreatedAt string

	ScreenName  string
	Description string
	MainImage   string

	Header    template.HTML
	Prerender template.HTML
	Footer    template.HTML
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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