We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4a5e40 commit cacf622Copy full SHA for cacf622
layouts/_default/_markup/render-table.html
@@ -0,0 +1,37 @@
1
+<table
2
+ {{- range $k, $v := .Attributes }}
3
+ {{- if $v }}
4
+ {{- printf " %s=%q" $k $v | safeHTMLAttr }}
5
+ {{- end }}
6
+ {{- end }}>
7
+ <thead>
8
+ {{- range .THead }}
9
+ <tr>
10
+ {{- range . }}
11
+ <th
12
+ {{- with .Alignment }}
13
+ {{- printf " style=%q" (printf "text-align: %s" .) | safeHTMLAttr }}
14
+ {{- end -}}
15
+ >
16
+ {{- .Text -}}
17
+ </th>
18
19
+ </tr>
20
21
+ </thead>
22
+ <tbody>
23
+ {{- range .TBody }}
24
+ <tr id={{(index . 0).Text | safeHTMLAttr }}>
25
26
+ <td
27
28
29
30
31
32
+ </td>
33
34
35
36
+ </tbody>
37
+</table>
0 commit comments