inliner

package module
v0.0.0-...-66beeec Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WHITESPACE = " \t\r\n\f"
)

Variables

This section is empty.

Functions

func InlineCssInHTML

func InlineCssInHTML(htmlDoc []byte) ([]byte, error)

Types

type CSSGroupSelectors

type CSSGroupSelectors struct {
	Key      string
	NotApply bool
}

type CSSSelectors

type CSSSelectors struct {
	Selectors       []CSSGroupSelectors
	Attributes      map[string]string
	AttributesOrder []string
}

type InlineEngine

type InlineEngine struct {
	// contains filtered or unexported fields
}

func InitInliner

func InitInliner() *InlineEngine

func (*InlineEngine) InlineCss

func (inlr *InlineEngine) InlineCss(htmlDoc []byte) ([]byte, error)

type StylesheetsTags

type StylesheetsTags struct {
	Parent  *html.Node
	Node    *html.Node
	Content string
}

Jump to

Keyboard shortcuts

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