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> <h2><a href="./">Go by Example</a>: {{.Name}}</h2>
{{range .Segs}} {{range .Segs}}
<table> <table>
<tbody> {{range .}}
{{range .}} <tr>
<tr> <td class="docs">
<td class="docs"> {{.DocsRendered}}
{{.DocsRendered}} </td>
</td> <td class="code{{if .CodeEmpty}} empty{{end}}{{if .CodeLeading}} leading{{end}}">
<td class="code{{if .CodeEmpty}} empty{{end}}{{if .CodeLeading}} leading{{end}}"> {{.CodeRendered}}
{{.CodeRendered}} </td>
</td> </tr>
</tr> {{end}}
{{end}}
</tbody>
</table> </table>
{{end}} {{end}}
{{if .NextExample}} {{if .NextExample}}