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 hashes)

Uploaded Source

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