From: Robert Griesemer Date: Wed, 27 Mar 2013 01:28:16 +0000 (-0700) Subject: godoc: pass *PageInfos instead of *token.FileSets in templates X-Git-Tag: go1.1rc2~315 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=12cf2ff00ba0a0816c1e572dae1476341f0bf3ed;p=gostls13.git godoc: pass *PageInfos instead of *token.FileSets in templates - convert all formatters that require a *token.FileSet to consistenly use a *PageInfo as first argument instead - adjust templates correspondingly - fix outstanding bug from previous CL 8005044 Going forward, with this change the affected functions have access to the full page "context" (PageInfo), not just the respective file set. This will permit better context-dependent formatting in the future. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7860049 --- diff --git a/lib/godoc/package.html b/lib/godoc/package.html index 33c2c27917..5dcc9f9a20 100644 --- a/lib/godoc/package.html +++ b/lib/godoc/package.html @@ -40,7 +40,7 @@ {{comment_html .Doc}} - {{example_html "" $.Examples $.FSet}} + {{example_html $ ""}}