resolveTemplate

Given a string with bracket parameters, e.g. "hello/{name}", and an associative array of parameters, substitute parameter values and return the new string.

For example, resolveTemplate("hello/{name}", ["name": "world"]} would return "hello/world".

string
resolveTemplate
(,
string[string] params
)

Meta