Skip to main content

interpolate

Function interpolate 

Source
pub fn interpolate(ctx: &Context, template: &str) -> String
Expand description

Interpolates $var and ${var} references in a template.

Unknown or absent variables resolve to the empty string (matching APISIX’s resolve_var). A literal $ not followed by [A-Za-z_{] passes through unchanged; there is no escape syntax.