Skip to main content

resolve

Function resolve 

Source
pub fn resolve(
    text: &str,
    slots: &[InterpolationSlot],
    scope: &Scope<'_>,
) -> String
Expand description

Replace every {...} token in text with what its scope holds.

slots is the placeholder catalog the parser recorded on the element the string came from, which is what tells a fragment parameter apart from a global signal of the same name.

The rules: