Perl embedded into Mason 

<ul>
% foreach my $item ( qw(Red Green Blue) ) {
    <li><% $item | h %></li>
% }
<ul>