Skip to content

Commit

Permalink
Merge pull request #1 from HeavyHorst/master
Browse files Browse the repository at this point in the history
primary
  • Loading branch information
blinkinglight authored Nov 11, 2020
2 parents 0edb5ab + e1b0d15 commit 666f36d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM golang:buster AS build

WORKDIR /src
COPY . .
RUN make

FROM scratch AS bin
COPY --from=build /src/bin/remco /remco

20 changes: 19 additions & 1 deletion docs/content/template/template-filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,25 @@ weight: 20
</details>

<details>
<summary> **parseYAML** -- Returns an interface{} of the yaml/json value.</summary>
<summary> **parseYAML** -- Returns an interface{} of the yaml value.</summary>

```
{% for value in getvs("/cache1/domains/*") %}
{% set data = value | parseYAML %}
{{ data.type }} {{ data.name }} {{ data.addr }}
{% endfor %}
```
</details>

<details>
<summary> **parseJSON** -- Returns an interface{} of the json value.</summary>

```
{% for value in getvs("/cache1/domains/*") %}
{% set data = value | parseJSON %}
{{ data.type }} {{ data.name }} {{ data.addr }}
{% endfor %}
```
</details>

<details>
Expand Down

0 comments on commit 666f36d

Please sign in to comment.