We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8eb55c1 + 133931a commit 0a670cfCopy full SHA for 0a670cf
Sources/Ignite/Elements/Document.swift
@@ -27,8 +27,11 @@ public struct Document: MarkupElement {
27
attributes.append(customAttributes: .init(name: "lang", value: language.rawValue))
28
var output = "<!doctype html>"
29
output += "<html\(attributes)>"
30
- output += head.markupString()
31
- output += body.markupString()
+ let bodyMarkup = body.markup()
+ // Deferred head rendering to accommodate for context updates during body rendering
32
+ let headMarkup = head.markup()
33
+ output += headMarkup.string
34
+ output += bodyMarkup.string
35
output += "</html>"
36
return Markup(output)
37
}
0 commit comments