mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-14 14:42:25 +00:00
Changes based on feedback to PR
This commit is contained in:
@@ -389,17 +389,17 @@ Note that dotdrop uses different delimiters than
|
|||||||
## Available variables
|
## Available variables
|
||||||
### Profile
|
### Profile
|
||||||
|
|
||||||
`{{@@ profile @@}}` contains the profile being used. Below in the example you can see how this is useful.
|
`{{@@ profile @@}}` contains the profile provided to dotdrop. Below example shows how it is used.
|
||||||
|
|
||||||
### Environment variables
|
### Environment variables
|
||||||
|
|
||||||
It's possible to access environment variables inside the templates. You can utilize this functionality like this:
|
It's possible to access environment variables inside the templates. This feature can be used like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
{{@@ env['MY_VAR'] @@}}
|
{{@@ env['MY_VAR'] @@}}
|
||||||
```
|
```
|
||||||
|
|
||||||
This allows for storing host-specific properties and/or secrets as environment variables.
|
This allows for storing host-specific properties and/or secrets in environment.
|
||||||
|
|
||||||
You can have an `.env` file in the directory where your `config.yaml` lies:
|
You can have an `.env` file in the directory where your `config.yaml` lies:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user