From: Jonathan S. <sw...@po...> - 2003-10-14 13:54:31
|
----- Original Message ----- From: "David R. Baird" <da...@ze...> To: <mas...@li...> Sent: Tuesday, October 14, 2003 3:54 AM Subject: Re: [Mason] $m->comp and %ARGS > > On 14 Oct 2003 at 12:08, james oliver wrote: > > > Hi, > > > > I can't get the following to work, maybe someone has an idea. > > [snip] > > > > > test.mhtml > > ========== > > > > <%init> > > print $m->comp('test.mc:one', %ARGS); > > </%init> > > > I don't think (not 100% sure) this syntax is correct for calling > a method? Try > No, the method-calling syntax is fine. T'he problem is that you cannot refer to %ARGS in a <%shared> section. You can refer to $m->caller_args, but it's probably better to move the reference to %ARGS into the method itself. Jon |