Compile every format at link

This commit is contained in:
2026-09-28 02:53:08 +02:00
committed by Lillem4n
parent e11ee9ec0e
commit 306b88ef56
10 changed files with 59 additions and 61 deletions
+2 -2
View File
@@ -71,8 +71,8 @@ func render(s *session, n node, sc renderScope) string {
case *template:
sc = sc.in(n)
if n.repeat == 1 {
if n.fixed {
return n.lit
if lit, fixed := n.fixedText(); fixed {
return lit
}
return expand(s, n, sc)
}