You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,15 @@
2
2
3
3
# gomplate
4
4
5
-
A simple [Go template](https://golang.org/pkg/text/template/)-based alternative to [`envsubst`](https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html).
5
+
A [Go template](https://golang.org/pkg/text/template/)-based alternative to [`envsubst`](https://www.gnu.org/software/gettext/manual/html_node/envsubst-Invocation.html).
6
6
7
7
I really like `envsubst` for use as a super-minimalist template processor. But its simplicity is also its biggest flaw: it's all-or-nothing with shell-like variables.
8
8
9
-
Gomplate is an alternative that will let you process templates which also include shell-like variables.
9
+
Gomplate is an alternative that will let you process templates which also include shell-like variables. Also there are some useful built-in functions that can be used to make templates even more expressive.
10
10
11
11
## Usage
12
12
13
-
At the moment, `gomplate` just replaces environment variables. All environment variables are available by referencing `.Env` in the template.
13
+
The usual and most basic usage of `gomplate`is to just replace environment variables. All environment variables are available by referencing `.Env` (or `getenv`) in the template.
14
14
15
15
The template is read from standard in, and written to standard out.
16
16
@@ -75,7 +75,7 @@ foo
75
75
76
76
#### `json`
77
77
78
-
Converts a JSON string into an object. Only works for JSON Objects. This can be used to access properties of JSON objects.
78
+
Converts a JSON string into an object. Only works for JSON Objects (not Arrays or other valid JSON types). This can be used to access properties of JSON objects.
0 commit comments