Skip to content

Commit 8f4fb59

Browse files
added missing word to README; removed HTMLElement macro as its no longer needed
1 parent 7d93964 commit 8f4fb59

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Write HTML using Swift Macros.
1212
- create `div` element: `#div()`
1313
- create `div` element with "dark" and "mode" classes: `#div(attributes: [.class(["dark", "mode"])])`
1414
### Example
15-
This html is compiled by following code
15+
This html is compiled by the following code
1616
```html
1717
<!DOCTYPE html><html><body><div class="dark mode" title="Hover over message" draggable="false" inputmode="email" hidden="hidden">Unconstrained text<div></div><a><div><abbr></abbr></div></a><div></div><button disabled></button><video autoplay preload="auto" src="ezclap" width="5"></video></div></body></html>
1818
```

Sources/HTMLKit/HTMLKit.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ import HTMLKitMacros
1010
// TODO: fix some `height` & `width` value types (they're CSS pixels, not only integers) | change some to `String` or allow overloads
1111

1212
// MARK: Elements
13-
@freestanding(expression)
14-
public macro HTMLElement(elementType: HTMLElementType, innerHTML: [String] = []) -> String = #externalMacro(module: "HTMLKitMacros", type: "HTMLElement")
15-
1613
@freestanding(expression)
1714
public macro html(xmlns: String? = nil, innerHTML: [String]) -> String = #externalMacro(module: "HTMLKitMacros", type: "HTMLElement")
1815

@@ -1184,4 +1181,4 @@ public extension HTMLElementAttribute {
11841181
enum WritingSuggestions : String {
11851182
case `true`, `false`
11861183
}
1187-
}
1184+
}

0 commit comments

Comments
 (0)