-spec template(iodata(), template_vars(),
list) -> string();
(iodata(), template_vars(),
binary) -> binary();
(iodata(), template_vars(),
iolist) -> iodata();
(iodata(), template_vars(),
path) -> file:filename().
Substitute variables Substitutions in Pattern and return a value of the given type.
Example:
template("Foo = ${foo}, bar = ${bar}", #{foo => <<"1">>, <<"bar">> => <<"2">>}, binary) ->
<<"Foo = 1, bar = 2">>