1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 17:24:46 +00:00
This commit is contained in:
deadc0de6
2022-08-25 23:25:29 +02:00
parent da764f39ad
commit 507c0b88cf

10
docs/templating.md vendored
View File

@@ -51,11 +51,11 @@ The following variables are available in templates:
The below variables are added to the available variables within templates. If the variable
is already set by the user (through the config file for example) it will not be overwritten.
* `os` will contain the OS name as provided by <https://docs.python.org/3/library/platform.html#platform.system>
* `release` will contain the OS release version as provided by <https://docs.python.org/3/library/platform.html#platform.release>
* `distro_id` will contain the distribution ID as provided by <https://distro.readthedocs.io/en/latest/#distro.id>
* `distro_version` will contain the distribution version as provided by <https://distro.readthedocs.io/en/latest/#distro.version>
* `distro_like` will contain a space-separated list of distro IDs that are closely related to the current OS distro as provided by <https://distro.readthedocs.io/en/latest/#distro.like>
* `{{@@ os @@}}` will contain the OS name as provided by <https://docs.python.org/3/library/platform.html#platform.system>
* `{{@@ release @@}}` will contain the OS release version as provided by <https://docs.python.org/3/library/platform.html#platform.release>
* `{{@@ distro_id @@}}` will contain the distribution ID as provided by <https://distro.readthedocs.io/en/latest/#distro.id>
* `{{@@ distro_version @@}}` will contain the distribution version as provided by <https://distro.readthedocs.io/en/latest/#distro.version>
* `{{@@ distro_like @@}}` will contain a space-separated list of distro IDs that are closely related to the current OS distro as provided by <https://distro.readthedocs.io/en/latest/#distro.like>
## Dotfile variables