diff options
Diffstat (limited to '_content/lib/godoc/example.html')
| -rw-r--r-- | _content/lib/godoc/example.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/_content/lib/godoc/example.html b/_content/lib/godoc/example.html index bde02c68..aef6edb4 100644 --- a/_content/lib/godoc/example.html +++ b/_content/lib/godoc/example.html @@ -1,14 +1,15 @@ +{{with .Data}} <div id="example_{{.Name}}" class="toggle"> <div class="collapsed"> <p class="exampleHeading toggleButton">▹ <span class="text">Example{{example_suffix .Name}}</span></p> </div> <div class="expanded"> <p class="exampleHeading toggleButton">▾ <span class="text">Example{{example_suffix .Name}}</span></p> - {{with .Doc}}<p>{{html .}}</p>{{end}} + {{with .Doc}}<p>{{.}}</p>{{end}} {{$output := .Output}} {{with .Play}} <div class="play"> - <div class="input"><textarea class="code" spellcheck="false">{{html .}}</textarea></div> + <div class="input"><textarea class="code" spellcheck="false">{{.}}</textarea></div> <div class="output"><pre>{{html $output}}</pre></div> <div class="buttons"> <button class="Button Button--primary run" title="Run this code [shift-enter]">Run</button> @@ -23,8 +24,9 @@ <pre class="code">{{.Code}}</pre> {{with .Output}} <p>Output:</p> - <pre class="output">{{html .}}</pre> + <pre class="output">{{.}}</pre> {{end}} {{end}} </div> </div> +{{end}} |
