If item.description is undefined or empty, I want to default to ‘No description’:
I’ve tried the following:
<%-: ( item.description | markdown ) || '<p>No description</p>' %>
<%-: ( item.description || 'No description' ) | markdown %>
What else can I do?
Not sure if you can mix
||with the|of EJS’ filters, but you can add a filter to accomplish it: