From 1de3a29f1cb234c667dec706ee643852230e3f8c Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sat, 3 Sep 2022 14:26:02 +0200 Subject: [PATCH] update doc --- docs/config-file.md | 1 + docs/templating.md | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/config-file.md b/docs/config-file.md index d2d7c09..b1ee39d 100644 --- a/docs/config-file.md +++ b/docs/config-file.md @@ -44,6 +44,7 @@ The following variables are available in the config files: * [User variables defined in the config](config-variables.md) * [Profile variables defined in the config](config-profiles.md#profile-variables-entry) * Environment variables: `{{@@ env['MY_VAR'] @@}}` +* The [enriched variables](templating.md#enriched-variables) * 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). diff --git a/docs/templating.md b/docs/templating.md index 7e2661f..d109086 100644 --- a/docs/templating.md +++ b/docs/templating.md @@ -39,14 +39,14 @@ The following variables are available in templates: * `{{@@ env['MY_VAR'] @@}}` contains environment variables (see [Environment variables](#environment-variables)). * `{{@@ header() @@}}` contains the dotdrop header (see [Dotdrop header](#dotdrop-header)). * `{{@@ _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. -* The [enriched variables](#variables-enrichment) +* The [enriched variables](#enriched-variables) * Dotfile specific variables (see [Dotfile variables](#dotfile-variables)) * All defined config variables (see [Variables](config-file.md#variables)) * 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 is already set by the user (through the config file for example) it will not be overwritten.