Skip to main content

get_variable_key

Function get_variable_key 

Source
pub fn get_variable_key(component: &TemplateComponent) -> Option<String>
Expand description

Get a unique key for a template component’s variable, for [TemplateComponentTracker] dedup/substitution tracking.

Contributor/Variable/Number/Identifier key by variable + rendering context (prefix/suffix); Title also keys by form. Date components are exempt — see the Date arm below.