dump filter: print the structure type and value of the variable

How to view the structure type of variables in the Anqi CMS template?

dumpThe filter can print out the structure, type, and value of a variable.

How to use

dumpHow to use filters:

{{ obj|dump }}

For example, to view the structure of bannerItem, you can write it like this:

{{ item|dump }}
# 显示结果
&config.BannerItem{Logo:"http://127.0.0.1:8001/uploads/202309/14/eba5aa9dc4c45d18.webp", Id:1, Link:"", Alt:"Hello", Description:"", Type:"default"}