Binders: dump

In doubt dump. The dump binder will allow to output any variable available in the template. If you use a different binder and assign the response to a variable, you can use the dump binder to inspect the content of the variable and recursively print all its properties.

Parameters

var

(string) (required) The name of the variable that you wish to inspect.

 

Return

Outputs the content of the specified variable. If the variable does not exists, dump will an HTML comment indicating that the variable is missing.

 

Example

 

{{dump var="foo"}}

# OR

{{dump var="{{$some_variable}}"}}

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *