You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Nunjucks
I'm using nunjucks for a static site builder and like to have the functionality to load json data every time a template get loaded with include, extends.
Example:
Template:
src/components/list.njk
JSON:
src/components/list.json
Base Template:
{% include "list.njk" %}
I've played already with a custom FileSystemLoader but I dont know how to pass the the data only to the context of this template. Any suggestions?