Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Dumps a variable in collapsable JSON format in the console log.

Input:

Code Block
{{ my_variable_name | dump_variable }}

Output (in the console in your browser development tools):

Code Block
Plate Variable Dump | type: variable_type | [my_variable serialized as JSON]

Custom label

The standard label is “Plate Variable Dump”. It is also possible to set your own label:

Code Block
{{ My Custom Labelmy_variable | dump_variable_name: |"Testing dumpmy_variable" }}

Output (in the console in your browser development tools):

Code Block
Plate Variable Dump (or custom label) Testing my_variable | type: variable_type | (JSON output)[my_variable serialized as JSON]