The templatestring function takes a string from elsewhere in the module and renders its content as a template using a supplied set of template variables.