Hi, I have some data which Id like to share between components. I'm fetching things from the database in a MasonX::WebApp class and then displaying it in my Mason templates. However, I'm including other components, and the included components need access to the data too. This results in me having to do pass it everywhere: <& foo.html, %ARGS %>.
This seems like a poor solution. Is there an obvious way to deal with this? Maybe stuffing the data in $m->notes instead of %ARGS? It seems a little odd to put all my data there, but it might be less awkward. - Perrin ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users