API#

dirtem.build(source: wcmatch.pathlib.Path | str, destination: wcmatch.pathlib.Path | str, options: dict[str, Any] | wcmatch.pathlib.Path | str, **variables: Any) None#
Parameters:
  • source – The path to the template directory.

  • destination – The path to the directory with the rendered files. If this directory does not exist, it is created.

  • options – Configuration for the building process. This may be a dict or a path to a TOML file. Refer to <Configuration>_ in the docs to learn more.

  • variables – The variables to use within the template for jinja.