-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ken Woodruff wrote: > I believe that the variables in the %args block don't get bound until > after the %shared sections run
Quoting from Mason Developer's Manual [1]: "It's important to realize that you do not have access to the %ARGS hash or variables created via an <%args> block inside a shared section. However, you can access arguments via $m->request_args." As for "why": "In the current implementation, the scope sharing is done with closures, so variables will only be shared if they are visible at compile-time in the other parts of the component." [1] http://masonhq.com/docs/manual/Devel.html#__shared_ 'HTH - -- Marius Feraru -----BEGIN PGP SIGNATURE----- iD8DBQFHOrJMtZHp/AYZiNkRAlfTAKDaqO3eABO3EYs7JB0HNVOSF1NlXwCg4VgX wC13Q2bnJNZNfsRH/U7u3cQ= =aLu2 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users