instiki/vendor/plugins/erubis/test/data/users-guide/example11_U.result
2010-07-04 08:51:53 -05:00

17 lines
279 B
Plaintext

$ erubis -XU example11.rhtml
_buf = '';
if @list.nil? || @list.empty?
else
@list.each_with_index do |item, i|
_buf << ( i % 2 == 0 ? '#FCC' : '#CCF' ).to_s;
_buf << ( item ).to_s;
end
end
_buf.to_s