In the normal loop section, we are doing a simple loop from 0 to 10, and printing the number 42 and %% on each iteration.
{% for i in range(0, 10) %}
42
<p>%%</p>
{% endfor %}This works as expected, and the output is correct.
If we include the 42.njk file, which just contains '42', the output is also correct.
{% for i in range(0, 10) %}
{% include '42.njk' %}
<p>%%</p>
{% endfor %}If we include the boop.njk, which contains {% beep %} (an async shortcode that returns '42'), and then do the loop, the output is incorrect.
{% for i in range(0, 10) %}
{% include 'boop.njk' %}
<p>%%</p>
{% endfor %}The 42 is not outputted, and the %% is also not outputted.
However, if we include the boopSync.njk, which contains {% beepSync %} (a sync shortcode that returns '42'), and then do the loop, the output is correct.
{% for i in range(0, 10) %}
{% include 'boopSync.njk' %}
<p>%%</p>
{% endfor %}We see the 42 and the %% on each iteration.




