For the complete documentation index, see llms.txt. This page is also available as Markdown.

$inspect

Displays the raw merge data used to create the document. Useful for debugging your template when merging documents.

Signature

{{$inspect [expandDepth=1]}}

Arguments

Name
Description
Type
Required

expandDepth

The number of levels deep to expand nested objects and arrays. Unexpaded objects will will display as [object Object] and unexpected arrays will display as [array Object]

StringNumber

Example

{{$inspect 2}}
{
    "name":"Order 2321",
    "account":[
        {
            "name":"Acme Co.",
            "address":{
                "street": "123 Main St.",
                "city": "New York",
                "state": "New York"
            }
        }
    ],
    "items":[
        { "name":"Widget 1", "price":123, "qty": 1, "amount": 123 },
        { "name":"Widget 2", "price":321, "qty": 1, "amount": 321 },
        { "name":"Widget 3", "price": 456, "qty": 1, "amount": 456 },
    ]
}

Last updated

Was this helpful?