parser

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTemplateBytes

func ParseTemplateBytes(templateBytes []byte) ([]*html.Node, error)

ParseTemplateBytes parses template bytes into HTML nodes, handling both full documents and fragments. If the content contains a full HTML document (</html> tag), it uses html.Parse. Otherwise, it parses as a fragment using a cached body element.

Types

This section is empty.

Jump to

Keyboard shortcuts

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