diff options
author | Ondřej Surý <ondrej@sury.org> | 2012-01-30 15:38:19 +0100 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2012-01-30 15:38:19 +0100 |
commit | 4cecda6c347bd6902b960c6a35a967add7070b0d (patch) | |
tree | a462e224ff41ec9f3eb1a0b6e815806f9e8804ad /lib/godoc/example.html | |
parent | 6c7ca6e4d4e26e4c8cbe0d183966011b3b088a0a (diff) | |
download | golang-4cecda6c347bd6902b960c6a35a967add7070b0d.tar.gz |
Imported Upstream version 2012.01.27upstream-weekly/2012.01.27
Diffstat (limited to 'lib/godoc/example.html')
-rw-r--r-- | lib/godoc/example.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/godoc/example.html b/lib/godoc/example.html new file mode 100644 index 000000000..7af943172 --- /dev/null +++ b/lib/godoc/example.html @@ -0,0 +1,14 @@ +<div class="example"> + <div class="collapsed"> + <p class="exampleHeading">▹ Example</p> + </div> + <div class="expanded"> + <p class="exampleHeading">▾ Example</p> + <p>Code:</p> + <pre class="code">{{.Code}}</pre> + {{if .Output}} + <p>Output:</p> + <pre class="output">{{html .Output}}</pre> + {{end}} + </div> +</div> |