Post A5elDS4eDeXEELmIAy by thegeekfather@distrotoot.com
 (DIR) More posts by thegeekfather@distrotoot.com
 (DIR) Post #A5elDRC3UcrlV2Eh5E by dammn@distrotoot.com
       2021-03-24T18:25:17Z
       
       0 likes, 0 repeats
       
       #django and #jinja2 experts: how do you propagate variables inside the #jinja2 includes ? I have an insane amount of variables which I need to propagate over several files which are being called based on certain conditions. I was thinking about doing simple "{% include "file.j2" %}" which would have all the variables in it and have other files inherit those. Apparently either #jinja2 does not support this or I am an idiot. Ideas ? Thoughts ?
       
 (DIR) Post #A5elDRczsSPuqaqD4q by dammn@distrotoot.com
       2021-03-28T01:31:44Z
       
       0 likes, 0 repeats
       
       Moved all that crap to dict() which was passed to render() .... f**k this
       
 (DIR) Post #A5elDS4eDeXEELmIAy by thegeekfather@distrotoot.com
       2021-03-28T03:42:10Z
       
       0 likes, 0 repeats
       
       @dammn Haha, I was actually going to look at your question and see if I could answer it looking at one of my old projects. It slipped my mind!