Sha256: 6f41d323defaeaeeb9fb123df1fbd1e9eee830cc5b0289830db20b722a5a374e

Contents?: true

Size: 334 Bytes

Versions: 10

Compression:

Stored size: 334 Bytes

Contents

class Tables < Erector::Widget
  def content
    table do
      
      thead do
        tr do
          th 'Name'
          th 'Age'
        end
      end
      
      tbody do
        @users.each do |user|
          tr do
            td user[:name]
            td user[:age]
          end
        end
      end
    
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ramaze-2023.01.06 spec/ramaze/view/erector/tables.erector
ramaze-2012.12.08 spec/ramaze/view/erector/tables.erector
ramaze-2012.12.08b spec/ramaze/view/erector/tables.erector
ramaze-2012.04.14 spec/ramaze/view/erector/tables.erector
ramaze-2012.03.07 spec/ramaze/view/erector/tables.erector
ramaze-2011.12.28 spec/ramaze/view/erector/tables.erector
ramaze-2011.10.23 spec/ramaze/view/erector/tables.erector
ramaze-2011.07.25 spec/ramaze/view/erector/tables.erector
ramaze-2011.01.30 spec/ramaze/view/erector/tables.erector
ramaze-2011.01 spec/ramaze/view/erector/tables.erector