How to get the total length of elements in a string, array, or key-value pair in AnQiCMS template?
In AnQi CMS template design, dynamically obtaining the total length of elements in a string, array, or key-value pair is a very practical feature. It can help us flexibly display information on the page, such as showing the number of products, the number of comments, or adjusting the layout according to the content length.The Anqi CMS template engine provides simple and efficient filters to meet these requirements.### Core Tool: `length` Filter
The most direct and universal method to obtain the total number of elements in any string, array (slice), or key-value pair (map/struct) is to use