mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-12 22:45:13 +00:00
update doc
This commit is contained in:
1
docs/config-file.md
vendored
1
docs/config-file.md
vendored
@@ -44,6 +44,7 @@ The following variables are available in the config files:
|
|||||||
* [User variables defined in the config](config-variables.md)
|
* [User variables defined in the config](config-variables.md)
|
||||||
* [Profile variables defined in the config](config-profiles.md#profile-variables-entry)
|
* [Profile variables defined in the config](config-profiles.md#profile-variables-entry)
|
||||||
* Environment variables: `{{@@ env['MY_VAR'] @@}}`
|
* Environment variables: `{{@@ env['MY_VAR'] @@}}`
|
||||||
|
* The [enriched variables](templating.md#enriched-variables)
|
||||||
* Dotdrop header: `{{@@ header() @@}}` (see [Dotdrop header](templating.md#dotdrop-header))
|
* Dotdrop header: `{{@@ header() @@}}` (see [Dotdrop header](templating.md#dotdrop-header))
|
||||||
|
|
||||||
as well as all [template methods](templating.md#template-methods) and [template filters](templating.md#template-filters).
|
as well as all [template methods](templating.md#template-methods) and [template filters](templating.md#template-filters).
|
||||||
|
|||||||
6
docs/templating.md
vendored
6
docs/templating.md
vendored
@@ -39,14 +39,14 @@ The following variables are available in templates:
|
|||||||
* `{{@@ env['MY_VAR'] @@}}` contains environment variables (see [Environment variables](#environment-variables)).
|
* `{{@@ env['MY_VAR'] @@}}` contains environment variables (see [Environment variables](#environment-variables)).
|
||||||
* `{{@@ header() @@}}` contains the dotdrop header (see [Dotdrop header](#dotdrop-header)).
|
* `{{@@ header() @@}}` contains the dotdrop header (see [Dotdrop header](#dotdrop-header)).
|
||||||
* `{{@@ _dotdrop_dotpath @@}}` contains the [dotpath](config-config.md) absolute path.
|
* `{{@@ _dotdrop_dotpath @@}}` contains the [dotpath](config-config.md) absolute path.
|
||||||
* `{{@@ _dotdrop_cfgpath @@}}` contains the absolute path to the [config file](config-file.md).
|
* `{{@@ _dotdrop_cfgpath @@}}` contains the [config file](config-file.md) absolute path.
|
||||||
* `{{@@ _dotdrop_workdir @@}}` contains the [workdir](config-config.md) absolute path.
|
* `{{@@ _dotdrop_workdir @@}}` contains the [workdir](config-config.md) absolute path.
|
||||||
* The [enriched variables](#variables-enrichment)
|
* The [enriched variables](#enriched-variables)
|
||||||
* Dotfile specific variables (see [Dotfile variables](#dotfile-variables))
|
* Dotfile specific variables (see [Dotfile variables](#dotfile-variables))
|
||||||
* All defined config variables (see [Variables](config-file.md#variables))
|
* All defined config variables (see [Variables](config-file.md#variables))
|
||||||
* All defined config interpreted variables (see [Interpreted variables](config-dynvars.md#dynvariables-entry))
|
* All defined config interpreted variables (see [Interpreted variables](config-dynvars.md#dynvariables-entry))
|
||||||
|
|
||||||
## Variables enrichment
|
## Enriched variables
|
||||||
|
|
||||||
The below variables are added to the available variables within templates. If the variable
|
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.
|
is already set by the user (through the config file for example) it will not be overwritten.
|
||||||
|
|||||||
Reference in New Issue
Block a user