File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- # swift-url-routing
1
+ # URL Routing
2
2
3
3
[ ![ ] ( 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 )
4
4
[ ![ ] ( 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"))
99
99
```
100
100
101
101
``` 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 {
107
106
book.title
108
- )
109
- )
107
+ }
108
+ .href (appRouter.path (for : .book (id : book.id )))
109
+ }
110
110
}
111
- )
111
+ }
112
112
```
113
113
``` html
114
114
<ul >
You can’t perform that action at this time.
0 commit comments