Jesse
unread,Oct 28, 2009, 2:03:17 PM10/28/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Haml
Failing example (matching first arguments in #cycle) ---
%tbody
%tr
%td
- 1.upto(3) do |i|
%div(style="background-color: #{cycle '#abC', '#fff'};"
class="td")= i
%td
- 1.upto(3).each do |i|
%div(style="background-color: #{cycle '#abC', '#fff'};"
class="td")= i
Working example (differing first arguments in #cycle) ---
%tbody
%tr
%td
- 1.upto(3) do |i|
%div(style="background-color: #{cycle '#abC', '#fff'};"
class="td")= i
%td
- 1.upto(3).each do |i|
%div(style="background-color: #{cycle '#abc', '#fff'};"
class="td")= i
It also fails using css classes .odd & .even for the rows, and with
local string variables odd & even
(I realize that this may not be a haml bug, but I've gotten this far.)
Expected result
==
++
==
Actual result
=+
+=
=+