docs: def templategetter(tmpl):
      """
      This is a dirty little template function generator that turns single-brace
      Mustache-style template strings into functions that interpolate dict keys:
  
      >>> get_name = templategetter("{first} {last}")
      >>> get_name({'first': 'Shawn', 'last': 'Allen'})
      'Shawn Allen'
      """
      tmpl = tmpl.replace('{', '%(')
      tmpl = tmpl.replace('}', ')s')
      return lambda data: tmpl % data