Long time ago I did some nice projects using HTML::Mason for our Intranet
that had lot of success :)
Now I want to create some new projects using Poet + Mason2.
I'm trying to understand how to share a variable to subcomponents. Suppose
I have this Base.pm component:
my $user = 'Guest'
method wrap() {
inner();
}
how can I make this $user variable accessible to all subcomponents?
For example, in Base.mc or in index.mc I would perform different actions if
the user is a guest or not.
In Mason1 I used to have global shared variables, but is this still
considered good practice in Mason2?
------------------------------------------------------------------------------
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users