module
template
Sending templates' requests: a load's data and the request commands (post, put…) in handlers. They go through the same loader as a chart's src (source::send): fetch in the browser, public/ files (or, with blocking, the network) during the build, a fake in tests.
A load follows the same rules about when it loads as a src (its load option, build for the site's own files and both otherwise). What a build loads is baked into the page, so the browser starts from it without asking again.
Functions
read
pub fn read(spec: &Spec, res: &Response) -> Result<Value, String>The value an answer holds: JSON as records and lists, CSV, TSV and NDJSON as a list of row records, anything else as text. path picks a part of a JSON answer (results, data.items).