Skip to main content

Module sample_loader

Module sample_loader 

Source
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 .json samples from an embedded subdirectory of SPEC_DIR.
load_samples_from_dir
Load all .json sample files from the given directory.