Skip to main content

build_ctx

Function build_ctx 

Source
pub fn build_ctx(
    dc: &DataContext,
    declared_deps: &[DataDep],
    config: Dynamic,
) -> Dynamic
Expand description

Build the ctx value a plugin’s render(ctx) function sees.

declared_deps gates which lazy sources get mirrored. config is the plugin’s [segments.<id>] TOML table already converted to a rhai-compatible Dynamic (use () when no table is configured).