HUGO
News Docs Themes Community GitHub

debug.Dump

Returns an object dump as a string.

Syntax

debug.Dump VALUE

Returns

string
<pre>{{ debug.Dump site.Data.books }}</pre>
[
  {
    "author": "Victor Hugo",
    "rating": 4,
    "title": "The Hunchback of Notre Dame"
  },
  {
    "author": "Victor Hugo",
    "rating": 5,
    "title": "Les Misérables"
  }
]

Output from this function may change from one release to the next. Use for debugging only.