Skip to content

Commit fa03889

Browse files
update README reflecting latest changes
1 parent a6f4260 commit fa03889

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ Write HTML using Swift Macros.
1010
let test:String = #html([
1111
#body([
1212
#div(
13-
class: ["dark-mode", "row"],
14-
draggable: .false,
15-
hidden: .true,
16-
inputmode: .email,
17-
title: "Hey, you're pretty cool",
13+
attributes: [
14+
.class(["dark-mode", "row"]),
15+
.draggable(.false),
16+
.hidden(.true),
17+
.inputmode(.email),
18+
.title("Hey, you're pretty cool")
19+
],
1820
[
1921
"Random text",
2022
#div(),

0 commit comments

Comments
 (0)