Function replaceVariable
Replace an {variable}
inside a string
string replaceVariable
(
const(string) page,
const(string) key,
const(string) value
);
Example
It should replace a variable inside a page
`-{key}-` .replaceVariable("key", "value") .should .equal("-value-");