summaryrefslogtreecommitdiff
path: root/lib/godoc/example.html
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2012-02-29 11:23:13 +0100
committerOndřej Surý <ondrej@sury.org>2012-02-29 11:23:13 +0100
commitb6d7097a0d6072199f2cd74d67404890697cf78a (patch)
treea2193c528a79fd5606507568859ee5067c6b86e4 /lib/godoc/example.html
parent4cecda6c347bd6902b960c6a35a967add7070b0d (diff)
downloadgolang-b6d7097a0d6072199f2cd74d67404890697cf78a.tar.gz
Imported Upstream version 2012.02.22upstream-weekly/2012.02.22
Diffstat (limited to 'lib/godoc/example.html')
-rw-r--r--lib/godoc/example.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/godoc/example.html b/lib/godoc/example.html
index 7af943172..d7b219371 100644
--- a/lib/godoc/example.html
+++ b/lib/godoc/example.html
@@ -1,14 +1,15 @@
-<div class="example">
+<div id="example_{{.Name}}" class="example">
<div class="collapsed">
- <p class="exampleHeading">▹ Example</p>
+ <p class="exampleHeading">▹ Example{{example_suffix .Name}}</p>
</div>
<div class="expanded">
- <p class="exampleHeading">▾ Example</p>
+ <p class="exampleHeading">▾ Example{{example_suffix .Name}}</p>
+ {{with .Doc}}<p>{{html .}}</p>{{end}}
<p>Code:</p>
<pre class="code">{{.Code}}</pre>
- {{if .Output}}
+ {{with .Output}}
<p>Output:</p>
- <pre class="output">{{html .Output}}</pre>
+ <pre class="output">{{html .}}</pre>
{{end}}
</div>
</div>