Bugfix
Detail
#27942
HTML templates: Access to properties of variable content directly in the template
Improvements in HTML templates:
- Access to properties of an object directly in the template: {obj.prop}
- Access to properties of an iteration: <span tl:foreach="x, it: list">...</span>. Here x` iterates over the values in `list. At the same time, you have access to the current iteration status via it: it.first, it.last, ...
- index: The current iteration index, starting with 0.
- count: The current iteration index, starting with 1.
- size: The total amount of elements in the iterated variable.
- current: The current iteration value.
- even/`odd`: Whether the current iteration is even or odd.
- first: Whether the current iteration is the first one.
- last: Whether the current iteration is the last one.
Inspired by https://www.thymeleaf.org/doc/tutorials/3.1/usingthymeleaf.html#keeping-iteration-status
test
- test.com.top_logic.html.template.TestHTMLTemplates.testPropertyAccess()
- test.com.top_logic.html.template.TestHTMLTemplates.testMapAccess()