Posted 18 December 2023, 11:39 am EST
If I use a range Tag ae
{{#ds.Items}}
Name: {{ds.Items.Name}}
I'm should not be here if items is empty
{{/ds.Items}}
Then I would expect nothing to be rendered with an empty list.
I can achieve this desired behavior with ‘hbi-empty’.
{{#ds.Items}:hbi-empty()}
Name: {{ds.Items.Name}}
I'm should not be here if items is empty
{{/ds.Items}}
Unfortunately, ‘hbi-empty’ does not work with a list that contains only one element. With only one element nothing is rendered
I’ve created a small sample repo for you
https://github.com/Amberg/MesciusBug/blob/main/Program.cs