Skip to content

Commit 4ce3617

Browse files
html element macro now accepts attributes
1 parent 9e0aa44 commit 4ce3617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/HTMLKit/HTMLKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public extension StaticString {
1515

1616
// MARK: Elements
1717
@freestanding(expression)
18-
public macro html<T: ExpressibleByStringLiteral>(xmlns: T? = nil, _ innerHTML: [T]) -> T = #externalMacro(module: "HTMLKitMacros", type: "HTMLElement")
18+
public macro html<T: ExpressibleByStringLiteral>(attributes: [HTMLElementAttribute] = [], xmlns: T? = nil, _ innerHTML: [T]) -> T = #externalMacro(module: "HTMLKitMacros", type: "HTMLElement")
1919

2020
@freestanding(expression)
2121
public macro custom<T: ExpressibleByStringLiteral>(tag: String, isVoid: Bool, attributes: [HTMLElementAttribute] = [], _ innerHTML: [T] = []) -> T = #externalMacro(module: "HTMLKitMacros", type: "HTMLElement")

0 commit comments

Comments
 (0)