html

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute added in v0.0.12

func Execute(bundle *compactor.Bundle) error

Execute processor

func ExtractAttribute added in v0.0.3

func ExtractAttribute(html string, attribute string, defaultValue string) string

ExtractAttribute find the value of the attribute

func Init added in v0.0.12

func Init(bundle *compactor.Bundle) error

Init processor

func MergeContent added in v0.0.12

func MergeContent(item *compactor.Item) string

MergeContent returns the content of the item with the replaced partials dependencies

func Minify added in v0.0.3

func Minify(content string) (string, error)

Minify HTML content

func Optimize added in v0.0.12

func Optimize(bundle *compactor.Bundle) error

Optimize processor

func Plugin added in v0.0.4

func Plugin() *compactor.Plugin

Plugin return the compactor plugin instance

func Related(item *compactor.Item) ([]compactor.Related, error)

Related processor

Types

This section is empty.

Jump to

Keyboard shortcuts

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