Based on looking at the source and some experimentation it seems like there is no way to pass any data to a function (excluding parameters) regardless of the method you use. The pages are built from the bottom up in the case of the function markup so there is no opportunity pass along any data and even when using @function the pagedata is always "new" although i thought based on the source that would have worked.
In my scenario I need data to flow top down which isn't an option so i was forced to have my functions (template parts) be responsible for getting the data and then jammed it into session for all other parts to use it as well.
If anyone sees a better way please let me know.
In my scenario I need data to flow top down which isn't an option so i was forced to have my functions (template parts) be responsible for getting the data and then jammed it into session for all other parts to use it as well.
If anyone sees a better way please let me know.