transforms library

Reference content transform pipeline.

The main entry point is resolveReferenceContent, which applies clay.yaml line deletions and regex replacements, then annotation markers (remove, replace, insert, Mustache unwrap, spacing groups, partials) in a fixed order.

Marker syntax is documented in the annotation reference.

Functions

resolveReferenceContent({required String content, required String targetRelativePath, required String targetAbsolutePath, required ClayConfig config}) String
Applies the annotation and config transforms to content as if it lived at targetRelativePath under targetAbsolutePath.