summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/debug/Dump.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/debug/Dump.md')
-rw-r--r--docs/content/en/functions/debug/Dump.md33
1 files changed, 11 insertions, 22 deletions
diff --git a/docs/content/en/functions/debug/Dump.md b/docs/content/en/functions/debug/Dump.md
index d3161605f..67b264bed 100644
--- a/docs/content/en/functions/debug/Dump.md
+++ b/docs/content/en/functions/debug/Dump.md
@@ -11,33 +11,22 @@ action:
---
```go-html-template
-{{ $data := "" }}
-{{ $p := "data/books.json" }}
-{{ with resources.Get $p }}
- {{ $opts := dict "delimiter" "," }}
- {{ $data = . | transform.Unmarshal $opts }}
-{{ else }}
- {{ errorf "Unable to get resource %q" $p }}
-{{ end }}
+<pre>{{ debug.Dump site.Data.books }}</pre>
```
-```go-html-template
-<pre>{{ debug.Dump $data }}</pre>
-```
-
-```text
-[]interface {}{
- map[string]interface {}{
+```json
+[
+ {
"author": "Victor Hugo",
- "rating": 5.0,
- "title": "Les Misérables",
+ "rating": 4,
+ "title": "The Hunchback of Notre Dame"
},
- map[string]interface {}{
+ {
"author": "Victor Hugo",
- "rating": 4.0,
- "title": "The Hunchback of Notre Dame",
- },
-}
+ "rating": 5,
+ "title": "Les Misérables"
+ }
+]
```
{{% note %}}