Skip to content

Commit 9d954eb

Browse files
committed
Add comment reasoning about reversed rendering
1 parent df70fcc commit 9d954eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Ignite/Elements/Document.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ struct Document: HTML {
2929
var output = "<!doctype html>"
3030
output += "<html \(attributes)>"
3131
output += contents
32+
/// Reversing render phase to defer rendering of Head element.
33+
/// Allows Head to use latest `PublishingContext` values.
3234
.reversed()
3335
.map { $0.render() }
3436
.reversed()

0 commit comments

Comments
 (0)