Using Mason Components as Roles
With the new Mason 2 introducing Moose method modifiers like round, augment, override, etc., I'd like to start writing components that act like Moose roles.
As far as I can tell, it is not supported out of the box, but has anyone tried to extend Mason (possibly via a plugin) to provide this functionality? In general, what does this entail, and is it even possible given the way Mason displays components?
edit: I tried to "fake" it with $m->visit('other component')
, which apparently at least loads the methods of another component, but the method modifiers seem to fail:...not found in the inheritance hierarchy
source to share
No one has answered this question yet
Check out similar questions: