Skip to content

Commit c5dc943

Browse files
committed
added code comments
1 parent c30e676 commit c5dc943

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Sources/ElementaryHTMX/HTMLAttribute+HTMX.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import Elementary
22

33
public extension HTMLAttribute where Tag: HTMLTrait.Attributes.Global {
4+
/// A namespace for HTMX attributes.
5+
/// See the [htmx reference](https://htmx.org/reference/) for more information.
46
enum hx {}
57
}
68

7-
// https://htmx.org/reference/
89
public extension HTMLAttribute.hx {
910
static func get(_ url: String) -> HTMLAttribute {
1011
.init(name: "hx-get", value: url)

Sources/ElementaryHTMX/HTMLAttributeValue+HTMX.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import Elementary
22

33
public extension HTMLAttributeValue {
4+
/// A namespace for HTMX attribute value types.
5+
/// See the [htmx reference](https://htmx.org/reference/) for more information.
46
enum HTMX {}
57
}
68

0 commit comments

Comments
 (0)