Maybe I haven't read it in the Grav documentation or seen any code examples in any templates, but the question is: how can variables be passed from a modular page to its modules?
It doesn't seem like inheritance works here like it does in other templates (for example the default page which inherits the base template).
I have several modular templates that use the same code for some variables, and for them to work I have to define them in each template.
I can't use extend, I can't use include (the context is different), I can't use blocks, etc.
Maybe I'm not doing it right or it just can't be done.
Any suggestions?