Trace the row a render stands in, skip a fieldless record, and cover a cell reading through a template

This commit is contained in:
2026-09-26 14:51:06 +02:00
committed by Lillem4n
parent 1a6111d67d
commit 9d8a52de68
3 changed files with 41 additions and 37 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ func renderOnce(s *session, n node) string {
func expandAnew(s *session, t *template) string {
var set holdSet
if s.trace != nil {
s.trace.depth++
defer func() { s.trace.depth-- }()
s.trace.repeatDepth++
defer func() { s.trace.repeatDepth-- }()
}
return expand(s, t, renderScope{set: &set})
}