printer

package
v0.0.0-...-a20b76d Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package printer emits the given html.Node as HTML text to an io.Writer.

This is forked from golang's render.go due to customizations needed for AMP HTML.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(w io.Writer, n *html.Node) error

Print emits the given Node to the given Writer. - Comments are skipped and not emitted. - Unnecessary quotes are dropped for attribute values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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