generates a function that takes a single argument, a mapping
containing replacement values for the format string provided
as the argument to this function. Useful for caching the
generated function for speed.
the generated function uses sprintf to format the data, which
are assumed to be strings, or castable to strings.