Function handle_interpolate

Source
pub fn handle_interpolate(source: &str) -> (Interpolation, Cow<'_, str>)
Expand description

Find any occurrences of ${} in source string and replace it with TOKEN_ID. Returns: Interpolation object with info about all tokens that was replaced And source string with replaced tokens.