Starting the constructor for ParametersContext.

master
Tom Alexander 4 years ago
parent f4f309caad
commit 18c1687064
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

@ -30,7 +30,17 @@ impl<'a> ParametersContext<'a> {
breadcrumbs: Option<&BreadcrumbTree>,
params: &Vec<KVPair>,
) -> Self {
todo!()
// If the parameter is a Path, then we resolve it immediately
// to a context element because those are resolved using the
// breadcrumbs at the time of assignment.
//
// If the parameter is a template (for example `foo="{bar}"`)
// then those are resolved at the time of access rather than
// the time of assignment, so we leave them into their
// original IntoContextElement state.
ParametersContext {
params: HashMap::new(),
}
}
}

Loading…
Cancel
Save