1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 18:34:48 +00:00
This commit is contained in:
deadc0de6
2023-09-12 22:15:00 +02:00
committed by deadc0de
parent 2eb1801eff
commit f152e94a73
3 changed files with 93 additions and 2 deletions

View File

@@ -54,4 +54,13 @@ It's possible to access environment variables inside the templates:
This allows for storing host-specific properties and/or secrets in environment variables.
It is recommended to use `variables` (see [config variables](../config/config-file.md#variables))
instead of environment variables unless these contain sensitive information that
shouldn't be versioned in Git (see [handle secrets doc](../howto/sensitive-dotfiles.md)).
shouldn't be versioned in Git (see [handle secrets doc](../howto/sensitive-dotfiles.md)).
## Variables dictionary
All variables are also available through the dictionary `_vars`
```
{%@@ for key in _vars @@%}
key:{{@@ key @@}} - value:{{@@ _vars[key] @@}}
{%@@ endfor @@%}
```