Conditional display of elements for asynchronous properties
Pug allows for conditional rendering based on synchronous properties
if user.is_anonymous
li ...
But it doesn't allow for conditional rendering on asynchronous properties
if ${await value.name}
The value can be conditioned using a ternary operator
li ${await value.name ? await value.name : ""} ${await value.name ? "," : ""} ${await value.fee ? await value.fee:0}%
The problems with this are that it's disgusting and that I'm unable to make the list element conditional (without hacking around pug into HTML with await value.name ? "<li ...></li>" : ""
)
I think this is a difficult problem to solve without making sib-core encompass template rendering