I have data objects that reference other data objects.
For example:
[
{
"_id": "object A id",
"key1": "value1",
"linked": [
{
"_id": "_object B id"
}
...
In javascript, I would do something like an ES6 find()
, but is there a 11ty-ish way to do this smartly/dynamically? Specifically in templating, if I want key1
from object B, how do I make that reference in nunjucks? Do I need to specify two data sources in my template? What does the nunjucks template tag look like?