Skip to main content

Template a whole directory

Project description

DirTempl

DirTempl templates a whole directory, letting you swap out individual snippets for the contents of files in the snippets directory.

Install

DirTempl is typically best installed by installing pipx and then installing dirtempl using pipx.

pipx install dirtempl

Example Usage

dirtempl input/ snippets/ output/

Anything in input folder containing {{{{ my_snippet }}}} will replace the contents with the corresponding file in snippets/ - e.g. my_snippet.

Why not use jinja2?

Too complicated.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dirtempl-0.1.3.tar.gz (10.1 kB view details)

Uploaded Source

File details

Details for the file dirtempl-0.1.3.tar.gz.

File metadata

  • Download URL: dirtempl-0.1.3.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/3.10.0 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9

File hashes

Hashes for dirtempl-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6a62260d42342470c27f5d53db6cf80fca70448e1f9fd946b0bb1c8e8fb43001
MD5 95c986e1ad914ddaaeb5aaecf80e01ae
BLAKE2b-256 18e7efb422b8cc13988c99cb78232f5dd0893d9505d244649443b96967e5bda5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page