proc replace(tmpl: string; replacements: varargs[(string, string)]): string {. ...raises: [], tags: [], forbids: [].}