fradrive/templates/table/colonnade.hamlet
2018-07-10 22:53:06 +02:00

21 lines
533 B
Plaintext

$newline never
<table *{dbsAttrs'}>
$maybe wHeaders' <- wHeaders
<thead>
<tr .table__row.table__row--head>
$forall widget <- wHeaders'
$# cell/header.hamlet
^{widget}
$nothing
<tbody>
$if null wRows && (dbsEmptyStyle == DBESHeading)
<tr .table__row>
<td .table__td colspan=#{show columnCount}>
_{dbsEmptyMessage}
$else
$forall row <- wRows
<tr .table__row>
$forall widget <- row
$# cell/body.hamlet
^{widget}