further simplify tables

This commit is contained in:
Mark McGranaghan 2012-10-13 12:15:46 -07:00
parent 2bf43d91cf
commit 252f7d77ac

View File

@ -22,18 +22,16 @@
<h2><a href="./">Go by Example</a>: {{.Name}}</h2>
{{range .Segs}}
<table>
<tbody>
{{range .}}
<tr>
<td class="docs">
{{.DocsRendered}}
</td>
<td class="code{{if .CodeEmpty}} empty{{end}}{{if .CodeLeading}} leading{{end}}">
{{.CodeRendered}}
</td>
</tr>
{{end}}
</tbody>
{{range .}}
<tr>
<td class="docs">
{{.DocsRendered}}
</td>
<td class="code{{if .CodeEmpty}} empty{{end}}{{if .CodeLeading}} leading{{end}}">
{{.CodeRendered}}
</td>
</tr>
{{end}}
</table>
{{end}}
{{if .NextExample}}