commit | 6d239e9b032b550faa401999f14a165406eca5be | [log] [tgz] |
---|---|---|
author | Andrew Gerrand <adg@golang.org> | Wed Dec 05 15:09:07 2012 +1100 |
committer | Andrew Gerrand <adg@golang.org> | Wed Dec 05 15:09:07 2012 +1100 |
tree | 19d37a6cb7ec89c8e7582ead463a4e267863149d | |
parent | 106cd5829c36aabada81687feda9cd3abec9e314 [diff] |
go.talks/present: remove presentation logic from data structures Remove the Template field from Doc, and the Doc field from Section. The new Render method on Doc wraps the Doc in an anonymous struct that also contains the template, before passing it to the template iteslf. The renderElem function wraps Section elements in a similar way. R=campoy, dsymonds CC=golang-dev https://golang.org/cl/6863058