Use Sections for conditional rendering and loops
masterSections are defined by a start tag {{?name}} and an end tag {{/name}}. They behave differently based on the data type:
- False/Empty: If the value is
null,false, or an empty collection, the content inside the section is hidden. - Non-False/Non-Collection: If the value is a single object (not a collection), the content is rendered once.
- Non-Empty Collection: If the value is a collection, the content is looped $N$ times (foreach). Use
{{=#this}}inside the loop to refer to the current object.