Descriptiongo.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.
Patch Set 1 #Patch Set 2 : diff -r 97a6c23bcdbf https://code.google.com/p/go.talks #Patch Set 3 : diff -r 4de2599667fd https://code.google.com/p/go.talks #Patch Set 4 : diff -r 0a84b93f5645 https://code.google.com/p/go.talks #
Total comments: 2
Patch Set 5 : diff -r 0a84b93f5645 https://code.google.com/p/go.talks #
MessagesTotal messages: 3
|