sigildocs

(sigil publish classifier)

(sigil publish classifier) - Content Classifiers

Classifiers determine how to handle different file formats. A classifier examines a file and returns functions for:

  • Reading metadata (frontmatter) - Phase 1 (scan)
  • Parsing full content - Phase 2 (render)

This enables the two-phase model: scan all files for metadata first, then parse content on-demand during rendering.

Exports

Construct a classifier-result struct.

Test if a value is a classifier-result struct.

Get the format field of a classifier-result struct.

Get the read-metadata field of a classifier-result struct.

Get the parse-content field of a classifier-result struct.