An open API service indexing awesome lists of open source software.

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.

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.