feat: Working on route and id helpers for views.
This commit is contained in:
@@ -17,7 +17,7 @@ struct UserForm: HTML, Sendable {
|
||||
|
||||
private func makeForm() -> some HTML {
|
||||
form(
|
||||
.id("user-form"),
|
||||
.id(.user(.form)),
|
||||
.class("user-form"),
|
||||
.hx.post(context.targetURL),
|
||||
.hx.pushURL(context.pushURL),
|
||||
@@ -99,6 +99,7 @@ struct UserForm: HTML, Sendable {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Return a route container.
|
||||
var targetURL: String {
|
||||
switch self {
|
||||
case .create:
|
||||
|
||||
Reference in New Issue
Block a user