]> Cypherpunks repositories - gostls13.git/commit
cmd/godoc: add support for serving templates
authorRuss Cox <rsc@golang.org>
Thu, 8 Mar 2012 13:39:20 +0000 (08:39 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 8 Mar 2012 13:39:20 +0000 (08:39 -0500)
commita40065ac6838068f07dcb12084406bab403067f2
treee9a230d4ee65f762062f713912cd5b7c3cbfa843
parente38c5fb23da137c822455126628a5b2bb68fc440
cmd/godoc: add support for serving templates
doc: convert to use godoc built-in templates

tmpltohtml is gone, to avoid having a second copy of the code.
Instead, godoc -url /doc/go1.html will print the actual HTML
served for that URL.  "make" will generate files named go1.rawhtml
etc, which can be fed through tidy.

It can be hard to tell from the codereview diffs, but all the
tmpl files have been renamed to be html files and then
have "Template": true added.

R=golang-dev, adg, r, gri
CC=golang-dev
https://golang.org/cl/5782046
17 files changed:
doc/Makefile
doc/articles/defer_panic_recover.html
doc/articles/defer_panic_recover.tmpl [deleted file]
doc/articles/error_handling.html
doc/articles/error_handling.tmpl [deleted file]
doc/articles/laws_of_reflection.html
doc/articles/laws_of_reflection.tmpl [deleted file]
doc/articles/slices_usage_and_internals.html
doc/articles/slices_usage_and_internals.tmpl [deleted file]
doc/effective_go.html
doc/effective_go.tmpl [deleted file]
doc/go1.html
doc/go1.tmpl [deleted file]
src/cmd/godoc/doc.go
src/cmd/godoc/godoc.go
src/cmd/godoc/main.go
src/cmd/godoc/template.go [moved from doc/tmpltohtml.go with 77% similarity]