Open pkolt opened 7 years ago
I just ran into this issue when using nunjucks with adonisjs, a nastyish work around I found was to:
{% include 'homePage.html' if homePage %}
Edit: i was getting myself confused at my own code and this didn't actually work, at all :(
So I've properly fixed it now, tho I'm not 100% it's bomb proof yet, see my comment on issue #838
This also occurs in v3.1.3 while inside loops: https://github.com/pkolt/express-nunjucks/issues/7#issuecomment-423000569
Bug nunjucks when using the asynchronous loader.
/templates/index.html:
/templates/homePage.html
/templates/postList.html:
index.js:
render result:
{% include %} didn't work!!! Nunjucks does not support asynchronous loader?