feat: Style updates, renames some files.
This commit is contained in:
9
Sources/ViewControllerLive/Extensions/Href+route.swift
Normal file
9
Sources/ViewControllerLive/Extensions/Href+route.swift
Normal file
@@ -0,0 +1,9 @@
|
||||
import Elementary
|
||||
import Routes
|
||||
import URLRouting
|
||||
|
||||
extension HTMLAttribute where Tag: HTMLTrait.Attributes.href {
|
||||
static func href(route: SiteRoute.View) -> Self {
|
||||
.href(SiteRoute.View.router.path(for: route))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user