From: John H. <jo...@gr...> - 2003-11-14 21:15:39
|
It discusses it briefly here: http://www.masonbook.com/book/chapter-2.mhtml#TOC-ANCHOR-7 and again here http://www.masonbook.com/book/chapter-2.mhtml#TOC-ANCHOR-10 John Halladay Green Aspen, Inc. Web Development - Server Admin - Hosting - Consulting Be sure to visit us at www.greenaspen.com! -----Original Message----- From: mas...@li... [mailto:mas...@li...]On Behalf Of Kevin Old Sent: Friday, November 14, 2003 1:25 PM To: Anthony Ettinger Cc: Mason Users Subject: Re: [Mason] passing arguments to components? On Fri, 2003-11-14 at 14:43, Anthony Ettinger wrote: > I have a component like this: > > <%args> > $color => 'grey' > </%args> > > > when it's called as: > > <& comp, color => 'blue' $> > > does the 'blue' overwrite the 'grey' for $color? Yes it does. Setting a value for a variable in the args block is basically a default value if one isn't sent. Otherwise if no value is sent you'll received an error that a value wasn't passed to the component for that variable. I know it's in the manual somewhere but I can't find it..... HTH, Kevin -- Kevin Old <ko...@ko...> ------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ Mason-users mailing list Mas...@li... https://lists.sourceforge.net/lists/listinfo/mason-users |