Closed oscarotero closed 2 years ago
@ManishOffi I can't. I don't have permissions in this repository to do that.
It looks like it may be missing from the documentation, but there is an ifAsync
tag that might be what you're looking for
@fdintino ok, thanks for your help. Indeed, this code works fine:
{% ifAsync true %}
{% include "title.njk" %}
{% endif %}
Hi.
I have an async filter, for example this one:
This filter can be used in the templates without problems:
But if I import the template inside an
if
, it outputs an empty stringIs there any way to import an async template condicionally? I see there's an
asyncEach
andasyncAll
tags but I didn't find anasyncIf
.