Skip to content

Commit

Permalink
Merge pull request #239 from jrasell/gh_238
Browse files Browse the repository at this point in the history
Add documentation for toLower and toUpper template functions.
  • Loading branch information
jrasell committed Sep 27, 2018
2 parents a5d1a14 + 7f81ef5 commit c1a3df0
Showing 1 changed file with 35 additions and 6 deletions.
41 changes: 35 additions & 6 deletions docs/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,23 @@ Render:
localhost:3306
```

#### env

Returns the value of the given environment variable.

Example:
```
[[ env "HOME" ]]
[[ or (env "NON_EXISTENT") "foo" ]]
```

Render:
```
/bin/bash
foo
```


#### loop

Accepts varying parameters and differs its behavior based on those parameters as detailed below.
Expand Down Expand Up @@ -308,18 +325,30 @@ Render:
2018-06-25T16:45:08+09:00
```

#### env
#### toLower

Returns the value of the given environment variable.
Takes the argument as a string and converts it to lowercase.

Example:
```
[[ env "HOME" ]]
[[ or (env "NON_EXISTENT") "foo" ]]
[[ key "service/config/queue-name" | toLower ]]
```

Render:
```
/bin/bash
foo
queue-name
```

#### toUpper

Takes the argument as a string and converts it to uppercase.

Example:
```
[[ key "service/config/queue-name" | toUpper ]]
```

Render:
```
QUEUE-NAME
```

0 comments on commit c1a3df0

Please sign in to comment.