Sha256: 05bb3f2bd3eeb4ab84b74e85d2c2bf216ae176696f00d402c2f9ffd178755ca1
Contents?: true
Size: 920 Bytes
Versions: 18
Compression:
Stored size: 920 Bytes
Contents
# Class BootstrapMarkup provides methods for using Bootstrap specific HTML # markups. class BootstrapMarkup def initialize @str = '' end def table_begin(css_class = 'table-condensed') @str << "<table class=\"table x #{css_class}\">" end def table_end @str << '</table>' end def headers_begin @str << '<thead><tr>' end def headers_end @str << '</tr></thead>' end def header_begin @str << '<th>' end def header_end @str << '</th>' end def header_content(str) @str << str unless str.nil? end def row_begin @str << '<tr>' end def row_end @str << '</tr>' end def cell_begin @str << '<td>' end def cell_end @str << '</td>' end def bigcell_begin @str << '<td colspan="3"><h5>' end def bigcell_end @str << '</h5></td>' end def cell_content(str) @str << str end def render @str end end
Version data entries
18 entries across 18 versions & 1 rubygems