Skip to content

Commit cece1d9

Browse files
authored
README updates (#113)
Just a few little things that stood out when revisiting.
1 parent c61e41e commit cece1d9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# swift-url-routing
1+
# URL Routing
22

33
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fpointfreeco%2Fswift-url-routing%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/pointfreeco/swift-url-routing)
44
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Fpointfreeco%2Fswift-url-routing%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/pointfreeco/swift-url-routing)
@@ -99,16 +99,16 @@ appRouter.path(for: .searchBooks(query: "Blob Bio"))
9999
```
100100

101101
```swift
102-
Node.ul(
103-
books.map { book in
104-
.li(
105-
.a(
106-
.href(appRouter.path(for: .book(id: book.id))),
102+
ul {
103+
for book in books {
104+
li {
105+
a {
107106
book.title
108-
)
109-
)
107+
}
108+
.href(appRouter.path(for: .book(id: book.id)))
109+
}
110110
}
111-
)
111+
}
112112
```
113113
```html
114114
<ul>

0 commit comments

Comments
 (0)