html

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractAttribute added in v0.0.3

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

ExtractAttribute find the value of the attribute

func MergeContent added in v0.0.12

func MergeContent(file *compactor.File) 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(options *compactor.Options, file *compactor.File) error

Optimize processor

func Plugin added in v0.0.4

func Plugin() *compactor.Plugin

Plugin return the compactor plugin instance

func Related(options *compactor.Options, file *compactor.File) ([]compactor.Related, error)

Related processor

func Transform added in v0.1.0

func Transform(options *compactor.Options, file *compactor.File) error

Transform processor

Types

This section is empty.

Jump to

Keyboard shortcuts

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