Method Resolve(string, Func<string, string?>)
Replaces every {{key}} / {{key:default}} in text with the value
returned by lookup for that key (or the default when the lookup yields none).
public static string Resolve(string text, Func<string, string?> lookup)