diff options
Diffstat (limited to 'lib/godoc/codewalk.html')
| -rw-r--r-- | lib/godoc/codewalk.html | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/godoc/codewalk.html b/lib/godoc/codewalk.html index 47f8a22e2..2835c6e82 100644 --- a/lib/godoc/codewalk.html +++ b/lib/godoc/codewalk.html @@ -18,9 +18,9 @@ <img title="View code in new window" alt="Pop Out Code" src="/doc/codewalk/popout.png" style="display: block; float: right;"/> </a> <select id="code-selector"> - {.repeated section File} - <option value="/doc/codewalk/?fileprint=/{@|html-esc}">{@|html-esc}</option> - {.end} + {{range .File}} + <option value="/doc/codewalk/?fileprint=/{{urlquery .}}">{{html .}}</option> + {{end}} </select> </div> <div id="code"> @@ -35,19 +35,19 @@ </div> <div class="right" id="comment-column"> <div id="comment-area"> - {.repeated section Step} + {{range .Step}} <div class="comment first last"> - <a class="comment-link" href="/doc/codewalk/?fileprint=/{File|html-esc}&lo={Lo|html-esc}&hi={Hi|html-esc}#mark" target="code-display"></a> - <div class="comment-title">{Title|html-esc}</div> + <a class="comment-link" href="/doc/codewalk/?fileprint=/{{urlquery .File}}&lo={{urlquery .Lo}}&hi={{urlquery .Hi}}#mark" target="code-display"></a> + <div class="comment-title">{{html .Title}}</div> <div class="comment-text"> - {.section Err} - ERROR LOADING FILE: {Err|html-esc}<br/><br/> - {.end} - {XML} + {{with .Err}} + ERROR LOADING FILE: {{html .}}<br/><br/> + {{end}} + {{.XML}} </div> - <div class="comment-text file-name"><span class="path-file">{@|html-esc}</span></div> + <div class="comment-text file-name"><span class="path-file">{{html .}}</span></div> </div> - {.end} + {{end}} </div> <div id="comment-options" class="setting"> <a id="prev-comment" href="#"><span class="hotkey">p</span>revious step</a> |
