On Fri, Mar 07, 2008 at 01:00:04PM +0000, Alastair Douglas wrote:
> <%perl>
> for (@some_pre_initialised_array) {
>   my $foo;
>   $foo = 'baz' if m/^fooisbaz$/;
>   $m->comp(component.html, foo=>$foo);

$m->comp('component.html', $foo ? (foo => $foo) : ());

> }
> </%perl>

hdp.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to