tmpltool 1.5.0

A fast and simple command-line template rendering tool using MiniJinja templates with environment variables
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Testing all filesystem functions with relative paths:

1. read_file(path="./basic.txt.tmpltool"):
{{ read_file(path="./basic.txt.tmpltool") | truncate(length=50) }}

2. file_exists(path="./basic.txt.tmpltool"): {{ file_exists(path="./basic.txt.tmpltool") }}

3. file_exists(path="./nonexistent.txt"): {{ file_exists(path="./nonexistent.txt") }}

4. file_size(path="./basic.txt.tmpltool"): {{ file_size(path="./basic.txt.tmpltool") }} bytes

5. glob(pattern="*.tmpltool"):
{% for file in glob(pattern="*.tmpltool") -%}
  - {{ file }}
{% endfor %}

All tests completed!