The template can be a function or a string, depending on need.  A string is more performant, since it only needs to be computed once, but sometimes you need the template to be more dynamic.