freddo411 has asked for the wisdom of the Perl Monks concerning the following question:
I'm attempting to override a Mason method on one of my pages. I'd like to inherit the behavior of the parent method, but add a few bits to the output. My hierarchy looks like this:
The parent method "leftnav" is defined in auto. I expected my code in my page to look something like this:auto -> auto2 -> my_page
The above does not work. Question: * Is there a syntax for "PARENT"? What is it? * If no, how to code something like this?<%method leftnav> <%perl> $m->comp( PARENT:leftnav, %ARGS ); # some code here to add some stuff at the bottom </%perl> </%method>
-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question on overriding a Mason method
by Anonymous Monk on Jan 12, 2012 at 02:19 UTC | |
by freddo411 (Chaplain) on Feb 08, 2012 at 21:41 UTC |