(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-itemprocedureConstruct a content-item struct.
content-item?procedureTest if a value is a content-item struct.
content-item-source-pathprocedureGet the source-path field of a content-item struct.
content-item-output-pathprocedureGet the output-path field of a content-item struct.
content-item-titleprocedureGet the title field of a content-item struct.
content-item-metadataprocedureGet the metadata field of a content-item struct.
content-item-formatprocedureGet the format field of a content-item struct.
content-item-body-loaderprocedureGet the body-loader field of a content-item struct.
asset-itemprocedureConstruct a asset-item struct.
asset-item?procedureTest if a value is a asset-item struct.
asset-item-source-pathprocedureGet the source-path field of a asset-item struct.
asset-item-output-pathprocedureGet the output-path field of a asset-item struct.
asset-item-mime-typeprocedureGet the mime-type field of a asset-item struct.