Renders a template string with the given variables.
Example:
var vars = new HashMap<string, string> (str_hash, str_equal);
vars.put ("user", "Alice");
string tpl = "Hi " + "{{us" + "er}}!";
string result = Template.render (tpl, vars);
// result == "Hi Alice!"
| template |
template string. |
| vars |
variable map. |
|
rendered string. |