What's the difference between
templateValues (tV) and
I know we get tD from a template hook and tV from a header hook, but we also get
data from the header hook, which contains the dame data as in tD?
Hook data object keys in the two cases:
[ 'req', 'res', 'templateValues', 'data' ] from header hook.
[ 'req', 'res', 'templateData' ] from template hook.
So this might not be a technical question at all. I'm just wondering what the naming is meant to be. Maybe someone can shed some light on this, perhaps simple question?
For instance, if
data in header hook is the same as tD in template hook, why is it not just called templateData instead, to avoid confusion?
I guess a header hook is only fired on initial render and not when the user navigates around, as is the case with a template hook.
Also, when for
filter:middleware.renderFooter is fired, only tV is present and not