Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseStrapi ¶
ParseStrapi takes a Strapi rich JSON response and parses it into an *html.Node tree and a style sheet.
Types ¶
type ParseOption ¶
type ParseOption func(*parser)
func ParseOptionClassMap ¶
func ParseOptionClassMap(m StyleMap) ParseOption
Styling to include in the output. Will override default values. See DefaultStyle for example structure.
func ParseOptionReturnDoc ¶
func ParseOptionReturnDoc(shouldReturnDoc bool) ParseOption
If true, the parsing includes the full HTML tree, including <html>, <head>, and <body> tags; good for rendering the response as-is. If false, only includes the parsed tags, which is better for embedding (e.g. in a template).
Click to show internal directories.
Click to hide internal directories.