I have the latest version of nunjucks....
Here is my conundrum and Its been killing me for days....
I have a "container component" im using throughout my page. The content of this "container" can be injected with other "sub components"
So for example my index page:
* header
* container component
|-----sub component 1
*container component
|-----sub component 2
* footer
So my question is, is there a way to include a "sub component" in my index.html page and say that the sub component inherits the "container component"? This way, I can place my subcomponent on any page, and if i specify that "container component" it always gets wrapped when needed ? I'm trying to prevent creating a "container component" for every sub component.
Does nunjucks support this?