code: def every(colors, output_dir=CACHE_DIR):
      
      colors = flatten_colors(colors)
      template_dir = os.path.join(MODULE_DIR, "templates")
      template_dir_user = os.path.join(CONF_DIR, "templates")
      util.create_dir(template_dir_user)
  
      join = os.path.join  # Minor optimization.
      for file in [*os.scandir(template_dir),
                   *os.scandir(template_dir_user)]:
          if file.name != ".DS_Store" and not file.name.endswith(".swp"):
              template(colors, file.path, join(output_dir, file.name))
  
      logging.info("Exported all files.")
      logging.info("Exported all user files.")
docs: Export all template files.