Documentation ¶
Index ¶
- Constants
- func AsyncCSSTag(cms []CSSMediaPair) *html.Node
- func AsyncJSTag(url string) *html.Node
- func Attributes(e *html.Node) map[string]html.Attribute
- func FindNodeByTag(tag string, node *html.Node) *html.Node
- func FindNodesByClassname(classname string, node *html.Node) []*html.Node
- func FindNodesByTag(tag string, node *html.Node) []*html.Node
- func GetKeys(node *html.Node) sets.StringSet
- func InlineCSSTag(contents string) *html.Node
- func InlineJSTag(contents string) *html.Node
- func PreloadTag(as, url string) *html.Node
- func SwapNodes(original, new *html.Node)
- func SyncCSSTag(cm CSSMediaPair) *html.Node
- func SyncJSTag(url string) *html.Node
- type CSSMediaPair
Constants ¶
View Source
const (
AsyncCSSClassname = "n-hopin-u-async-css"
)
Variables ¶
This section is empty.
Functions ¶
func AsyncCSSTag ¶
func AsyncCSSTag(cms []CSSMediaPair) *html.Node
func AsyncJSTag ¶
func FindNodesByClassname ¶
func InlineCSSTag ¶
func InlineJSTag ¶
func PreloadTag ¶
func SyncCSSTag ¶
func SyncCSSTag(cm CSSMediaPair) *html.Node
Types ¶
type CSSMediaPair ¶
Click to show internal directories.
Click to hide internal directories.