Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/Templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ In addition to the [built-in Go template functions and features][tt], `webhook`

The `getenv` template function can be used for inserting environment variables into a templated configuration file.

Example:
```json
"Secret": "{{getenv \"TEST_secret\" | js}}"
```

### `cat`

The `cat` template function can be used to read a file from the local filesystem. This is useful for reading secrets from files. If the file doesn't exist, it returns an empty string.
Expand Down