blob: 0b092087f075004ae3031b7153aa0069d5656775 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
---
title: Syntax
weight: 0
---
## About `.Env`
You can easily access environment variables with `.Env`, but there's a catch:
if you try to reference an environment variable that doesn't exist, parsing
will fail and `gomplate` will exit with an error condition.
Sometimes, this behaviour is desired; if the output is unusable without certain
strings, this is a sure way to know that variables are missing!
If you want different behaviour, try [`getenv`](../functions/#getenv).
|