docs: def substitute(template, mapping=None):
      """
      Render the template *template*. *mapping* is a :class:`dict` with
      values to add to the template.
      """
      if mapping is None:
          mapping = {}
      templ = Template(template)
      return templ.substitute(mapping)