Skip to content

Commit

Permalink
added code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sliemeobn committed Jul 2, 2024
1 parent c30e676 commit c5dc943
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/ElementaryHTMX/HTMLAttribute+HTMX.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import Elementary

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

// https://htmx.org/reference/
public extension HTMLAttribute.hx {
static func get(_ url: String) -> HTMLAttribute {
.init(name: "hx-get", value: url)
Expand Down
2 changes: 2 additions & 0 deletions Sources/ElementaryHTMX/HTMLAttributeValue+HTMX.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import Elementary

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

Expand Down

0 comments on commit c5dc943

Please sign in to comment.