Skip to main content

interpolate

Function interpolate 

Source
pub fn interpolate(s: &str, env: &Env<'_>) -> Result<String, ResolveError>
Expand description

Replaces each {{token}} in s. {{{{ is a literal {{, for text that needs the braces themselves ("Dear {{{{name}}" writes Dear {{name}}).