Expand description
Sample loader — reads A2UI sample JSON files.
By default the specification tree is embedded into the binary at compile
time (SPEC_DIR + load_samples), so the gallery is fully
self-contained and distributable. The legacy filesystem reader
load_samples_from_dir is retained for the A2UI_SPEC_DIR dev override.
Structs§
- Sample
- A loaded sample with metadata and parsed messages.
Statics§
- SPEC_
DIR - The full A2UI specification tree, embedded at compile time.
Functions§
- load_
samples - Load all
.jsonsamples from an embedded subdirectory ofSPEC_DIR. - load_
samples_ from_ dir - Load all
.jsonsample files from the given directory.