Sha256: 5d2029f2e7228340ae8e5338475e57d5b818f149b2c2e271967a1968b8408c73
Contents?: true
Size: 296 Bytes
Versions: 2
Compression:
Stored size: 296 Bytes
Contents
module Trestle module GridHelper def row content_tag(:div, class: 'row') { yield } end def col(columns) content_tag(:div, class: columns.map { |breakpoint, span| "col-#{breakpoint}-#{span}" }) { yield } end def divider content_tag(:hr) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trestle-0.8.2 | app/helpers/trestle/grid_helper.rb |
trestle-0.8.0 | app/helpers/trestle/grid_helper.rb |