Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fill ¶
Fill renders a markdown template by substituting {{.X}} markers from values. Every top-level marker absent from values or empty is collected and reported in one error; the template is never executed with unfilled top-level markers.
func FillOptional ¶
FillOptional renders a template like Fill, except names in optional are exempt from the unfilled-marker guarantee and render as nothing if absent or empty.
func StripLeadingComment ¶
StripLeadingComment drops a leading `<!-- ... -->` block from text and returns text unchanged when there is none. It is the same stripper Fill and FillOptional apply to a template before parsing it.
func TopLevelMarkers ¶
TopLevelMarkers parses template and returns the deduplicated, sorted names of every top-level {{.X}} marker it declares. It is the marker-set accessor `lyx stencil validate` uses to compare two templates, not a validity check: a marker is listed here regardless of whether any value would fill it.
Types ¶
This section is empty.