Open HamedFathi opened 8 years ago
An easy workaround for this is to add a count method to your model
public class model
list
Then instead of doing a List.count check, set the personcount to persons.count in the model,
model.personCount = persons.count;
then in your template just check personcount before rendering any list related content
{{#if personCount}}
{{#each persons}} ..... {{/each}} {{/if}}
I want to know Is there anyway by using this template engine and have two conditions for checking
Can anyone guide me How can I create tags like above ?