summaryrefslogtreecommitdiff
path: root/docs/content/syntax.md
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2017-05-23 23:49:08 -0400
committerDave Henderson <dhenderson@gmail.com>2017-05-24 23:53:07 -0400
commit1a8d5bf338113a60f7435a7f6b8ea7db0d7c0f32 (patch)
treedc1c43a06021cf6fae6b7389bff007aad1691207 /docs/content/syntax.md
parentcaa326d2c16fa3f1f24897f17dc14ff290be82e2 (diff)
Hugoizing doc site
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'docs/content/syntax.md')
-rw-r--r--docs/content/syntax.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/content/syntax.md b/docs/content/syntax.md
new file mode 100644
index 00000000..0b092087
--- /dev/null
+++ b/docs/content/syntax.md
@@ -0,0 +1,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).