sigildocs

(sigil publish source)

(sigil publish source) - Content Sources

Source functions produce content items from files. Uses the two-phase model:

  • Phase 1 (scan): Read metadata only, create lightweight content-items
  • Phase 2 (render): Load full content on demand via body-loader

This keeps memory bounded for large sites.

Exports

content-itemprocedure

Construct a content-item struct.

content-item?procedure

Test if a value is a content-item struct.

Get the source-path field of a content-item struct.

Get the output-path field of a content-item struct.

Get the title field of a content-item struct.

Get the metadata field of a content-item struct.

Get the format field of a content-item struct.

Get the body-loader field of a content-item struct.

asset-itemprocedure

Construct a asset-item struct.

asset-item?procedure

Test if a value is a asset-item struct.

Get the source-path field of a asset-item struct.

Get the output-path field of a asset-item struct.

Get the mime-type field of a asset-item struct.