You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here's the case.
If you have a config: site.filter('x', async () => "hello", true);
and a page A that uses {{ x }}.
If you need to render content from page A into page B: {{ A.page.content }} (pre rendered content) will work. But {{ A.page.content | njk }} will return empty.
This is useful to render content of RSS feeds, where you don't want A.content (the full rendered page) but still want to resolve the templates.
I think the problem is that the njk plugin/filter should either assume it's async by default or have an option to become so.
The text was updated successfully, but these errors were encountered:
here's the case.
If you have a config:
site.filter('x', async () => "hello", true);
and a page A that uses
{{ x }}
.If you need to render content from page A into page B:
{{ A.page.content }}
(pre rendered content) will work. But{{ A.page.content | njk }}
will return empty.This is useful to render content of RSS feeds, where you don't want
A.content
(the full rendered page) but still want to resolve the templates.I think the problem is that the njk plugin/filter should either assume it's async by default or have an option to become so.
The text was updated successfully, but these errors were encountered: