Return link's and format compile's outputs as templateLink and formatOps, assigned once in linkTemplate

This commit is contained in:
2026-09-28 23:37:32 +02:00
committed by Lillem4n
parent 243094e4ab
commit e257dc0e6e
17 changed files with 120 additions and 118 deletions
+2 -2
View File
@@ -42,8 +42,8 @@ func expandAnew(s *session, t *template) string {
// in is the scope t renders in: its draw group where it names one, else its caller's.
func (sc renderScope) in(t *template) renderScope {
if t.drawGroupKey != "" {
sc.group = t.drawGroupKey
if t.link.drawGroupKey != "" {
sc.group = t.link.drawGroupKey
}
return sc
}