https://github.com/crdoconnor/dirtempl
Command line directory templater.
https://github.com/crdoconnor/dirtempl
Last synced: about 1 year ago
JSON representation
Command line directory templater.
- Host: GitHub
- URL: https://github.com/crdoconnor/dirtempl
- Owner: crdoconnor
- License: mit
- Created: 2023-01-28T10:46:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-31T11:09:49.000Z (over 3 years ago)
- Last Synced: 2025-03-17T19:48:01.577Z (over 1 year ago)
- Language: Python
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://pypa.github.io/pipx/)
and then installing dirtempl using pipx.
```bash
pipx install dirtempl
```
## Example Usage
```bash
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.