Based on the following docs, I can easily make use of the If Expressions as exampled. But how can we take them further by wrapping HTML to the object? I want to do something like this...
{{ "<li>" . foo . "</li>" if foo else '' }}
what would be the proper syntax?
As I have recently discovered, one way to go about this process is to use the Join and Safe filters to help achieve this goal. The following works for me today.