2012-02-13 20:52:00 -07:00
|
|
|
<div id="example_{{.Name}}" class="example">
|
2011-10-06 12:56:17 -06:00
|
|
|
<div class="collapsed">
|
2012-02-15 15:44:01 -07:00
|
|
|
<p class="exampleHeading">▹ Example{{example_suffix .Name}}</p>
|
2011-10-06 12:56:17 -06:00
|
|
|
</div>
|
|
|
|
<div class="expanded">
|
2012-02-15 15:44:01 -07:00
|
|
|
<p class="exampleHeading">▾ Example{{example_suffix .Name}}</p>
|
2012-02-15 18:43:22 -07:00
|
|
|
{{with .Doc}}<p>{{html .}}</p>{{end}}
|
2011-12-01 15:52:31 -07:00
|
|
|
<p>Code:</p>
|
2011-12-07 13:00:38 -07:00
|
|
|
<pre class="code">{{.Code}}</pre>
|
2012-02-15 18:43:22 -07:00
|
|
|
{{with .Output}}
|
2011-10-06 12:56:17 -06:00
|
|
|
<p>Output:</p>
|
2012-02-15 18:43:22 -07:00
|
|
|
<pre class="output">{{html .}}</pre>
|
2011-12-01 15:52:31 -07:00
|
|
|
{{end}}
|
2011-10-06 12:56:17 -06:00
|
|
|
</div>
|
|
|
|
</div>
|