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
+1 -1
View File
@@ -94,7 +94,7 @@ func TestEveryFormatCompilesAtLink(t *testing.T) {
compiled := map[string]bool{}
if err := eachNode(n, "t", func(path string, m node) error {
if tm, ok := m.(*template); ok {
compiled[path+" "+tm.format] = tm.ops != nil
compiled[path+" "+tm.format] = tm.compiled.ops != nil
}
return nil
}); err != nil {