feat: Refactors / renames some modules.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import Elementary
|
||||
|
||||
extension HTMLAttribute where Tag == HTMLTag.input {
|
||||
|
||||
static func min(_ value: String) -> Self {
|
||||
.init(name: "min", value: value)
|
||||
}
|
||||
|
||||
static func step(_ value: String) -> Self {
|
||||
.init(name: "step", value: value)
|
||||
}
|
||||
|
||||
}
|
||||
9
Sources/ViewController/Extensions/Href+route.swift
Normal file
9
Sources/ViewController/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