We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27c07d8 commit 1ecf031Copy full SHA for 1ecf031
Benchmarks/Benchmarks/Elementary/Elementary.swift
@@ -12,18 +12,25 @@ package struct ElementaryTests : HTMLGenerator {
12
package init() {}
13
14
package func staticHTML() -> String {
15
+ StaticView().render()
16
+ }
17
+
18
+ package func dynamicHTML(_ context: HTMLContext) -> String {
19
+ DynamicView(context: context).render()
20
21
+}
22
23
+struct StaticView: HTML {
24
+ var content: some HTML {
25
+ HTMLRaw("<!DOCTYPE html>")
26
html {
27
head {
28
title { "StaticView" }
29
}
30
body {
31
h1 { "Swift HTML Benchmarks" }
32
- }.render()
- }
-
- package func dynamicHTML(_ context: HTMLContext) -> String {
- DynamicView(context: context).render()
33
34
35
36
0 commit comments