components

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Overview

Package components provides high-level components that are composed of low-level elements and attributes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTML5

func HTML5(p DocumentProps) g.NodeFunc

HTML5 document template.

Types

type DocumentProps

type DocumentProps struct {
	Title       string
	Description string
	Language    string
	Head        []g.Node
	Body        []g.Node
}

DocumentProps for HTML5. Title is set no matter what, Description and Language elements only if the strings are non-empty.

Jump to

Keyboard shortcuts

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