Make great documentation goal 1.2, and plan the README's reorganisation and the nested-template gaps #33
@@ -75,7 +75,6 @@ func (c *drawCheck) checkDraws(path string, n node) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// renderDraws gathers the reads one render of t makes.
|
|
||||||
func renderDraws(t *template) *drawWalk {
|
func renderDraws(t *template) *drawWalk {
|
||||||
w := newDrawWalk()
|
w := newDrawWalk()
|
||||||
for _, e := range renderEdges(t) {
|
for _, e := range renderEdges(t) {
|
||||||
@@ -179,7 +178,6 @@ func refRead(n node, label string) (arm, bool) {
|
|||||||
// checkColumnDraws fences a record's columns as one render.
|
// checkColumnDraws fences a record's columns as one render.
|
||||||
func checkColumnDraws(t *template, columns []string) error { return columnDraws(t, columns).check() }
|
func checkColumnDraws(t *template, columns []string) error { return columnDraws(t, columns).check() }
|
||||||
|
|
||||||
// columnDraws gathers the reads one record render of t's columns makes.
|
|
||||||
func columnDraws(t *template, columns []string) *drawWalk {
|
func columnDraws(t *template, columns []string) *drawWalk {
|
||||||
w := newDrawWalk()
|
w := newDrawWalk()
|
||||||
for _, name := range columns {
|
for _, name := range columns {
|
||||||
|
|||||||
@@ -128,6 +128,12 @@ func renderRoot(s *session, t *template) {
|
|||||||
switch {
|
switch {
|
||||||
case t.table != nil:
|
case t.table != nil:
|
||||||
render(s, t.table, sc)
|
render(s, t.table, sc)
|
||||||
|
for r := 0; r < t.table.rowCount(); r++ {
|
||||||
|
var set holdSet
|
||||||
|
sc := renderScope{set: &set}
|
||||||
|
sc.hold().pins.pin(t.table, r)
|
||||||
|
render(s, t.table.wholeRow, sc)
|
||||||
|
}
|
||||||
case t.cellOf != nil:
|
case t.cellOf != nil:
|
||||||
sc.t, sc.row = t.cellOf, t.cellRow
|
sc.t, sc.row = t.cellOf, t.cellRow
|
||||||
render(s, t, sc)
|
render(s, t, sc)
|
||||||
|
|||||||
Reference in New Issue
Block a user