Skip to main content

build_render_context

Function build_render_context 

Source
pub fn build_render_context(
    base_data: &HashMap<String, Value>,
    provider: &ProviderEntry,
    consumer: &ConsumerEntry,
) -> Option<HashMap<String, Value>>
Expand description

Build a data context that merges base project data with block-specific positional arguments. Consumer argument values are bound to the provider’s declared parameter names, with block args taking precedence over data variables. Build a data context that merges base project data with block-specific positional arguments. Returns None if the argument count doesn’t match.