I have split parts of my templates into codesegments which are embeded in the main template.
How exactly does EE render templates? Does it include the embedded templates and then renders the whole thing or does it render every single template (the parent one that is actually called and the child ones that are included in it) all by itself.
In other words, let’s say I have defined {assign_variable:my_template_group="site"} at the beginning of my parent template. Somewhere in it I’m embeding a template that calls this variable. Will EE know what the variable in the child template stands for or do I have to define variables in every single template that makes use of them?