Skip to content

Commit

Permalink
Use one table for code example in Template's user guide.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericf committed Nov 7, 2012
1 parent 38149bd commit dd663fa
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions src/template/docs/index.mustache
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<style scoped>
.micro-code {
margin-bottom: 0.5em;
}
.micro-code pre.code {
height: 100%;
margin: 0;
Expand All @@ -14,7 +11,9 @@
}
.micro-code td:first-child,
.micro-code th:first-child { padding-left: 0; }
.micro-code th:first-child {
padding-left: 0;
}
</style>

<div class="intro">
Expand Down Expand Up @@ -445,15 +444,13 @@ To execute arbitrary JavaScript code within the template without rendering its o
</p>

<table class="micro-code">
<thead>
<tbody>
<tr>
<th>Template Source</th>
<th colspan="2">Template Source</th>
</tr>
</thead>

<tbody>
<tr>
<td width="100%">
<td colspan="2" width="100%">
```html
<h1>Animals</h1>

Expand All @@ -467,18 +464,12 @@ To execute arbitrary JavaScript code within the template without rendering its o
```
</td>
</tr>
</tbody>
</table>

<table class="micro-code">
<thead>
<tr>
<th>Data</th>
<th>Output</th>
<th style="padding-top: 0.5em;">Data</th>
<th style="padding-top: 0.5em;">Output</th>
</tr>
</thead>

<tbody>
<tr>
<td width="50%">
```javascript
Expand Down

0 comments on commit dd663fa

Please sign in to comment.