I have a .njk file that I would like to populate with data from a JSON file.
Currently I am using Webpack.
Here is my JSON File:
{ "ranking": "Colors", "description": "Here is a ranking of my favorite colors", "rankings": [ { "rank": 1, "institution": "red", }, { "rank": 2, "institution": "Blue", }, { "rank": 3, "institution": "Green", } ]
}
In my nunjucks file, what would be the syntax I would need to use to pass in this data?