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
Hello from tmpltool!

Current user: {{ get_env(name="USER") }}
Home directory: {{ get_env(name="HOME") }}
Shell: {{ get_env(name="SHELL") }}
Path: {{ get_env(name="PATH") }}

{% set custom_var = get_env(name="CUSTOM_VAR", default="") %}
{% if custom_var %}
Custom variable is set to: {{ custom_var }}
{% else %}
Custom variable is not set.
{% endif %}