el

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package el provides shortcuts and helpers to common HTML elements. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element for a list of elements.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Body

func Body(children ...g.Node) g.NodeFunc

Body returns an element with name "body" and the given children.

func Document

func Document(children ...g.Node) g.NodeFunc

Document returns an special kind of Node that prefixes its children with the string "<!doctype html>".

func HTML

func HTML(children ...g.Node) g.NodeFunc

HTML returns an element with name "html" and the given children.

func Head(children ...g.Node) g.NodeFunc

Head returns an element with name "head" and the given children.

func Title

func Title(title string) g.NodeFunc

Title returns an element with name "title" and a single Text child.

Types

This section is empty.

Jump to

Keyboard shortcuts

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