code: def templates_in(path):
      
      ext = '.cpp'
      return (
          Template(f[0:-len(ext)], load_file(os.path.join(path, f)))
          for f in os.listdir(path) if f.endswith(ext)
      )
docs: Enumerate the templates found in path