Write HTML and HTMX using Swift Macros.
Repo RandomHashTags/swift-htmlkit, read from GitHub 19 h ago. RandomHashTags has not joined Take My Repo.
swift-syntax dependency version to 601.0.0 by @RandomHashTags in #13#uncheckedHTML macro by @RandomHashTags in #14Full Changelog: 0.13.1...0.14.0
Minor update by @RandomHashTags .
Exports.swift fileHTMLExpansionResultType.chunksInline case as it can be represented using chunks (also fixed compilation failure if using a Swift compiler >= 6.2)Full Changelog: 0.13.0...0.13.1
Feature and improvement update by @RandomHashTags
SwiftSyntax imports (moved all relevant macro code to the HTMLKitParse module) (commit)HTMLKitParse product in Package.swiftHTMLElementType now conforms to CaseIterable and Hashable (commit)HTMLEncoding now conforms to Equatable (commit)resultType: option in the macro arguments; now supports chunking or streaming the expansion result)returns)FoundationEssentials or Foundation (in non-test modules) (commit)innerHTML is now only [Sendable] instead of [CustomStringConvertible & Sendable] (commit)Full Changelog: 0.12.1...0.13.0
Minor update by @RandomHashTags
HTMLExpansionContext are now publicly mutable (were package(set)) (commit)parseLiteralValue (commit)Full Changelog: 0.12.0...0.12.1
QOL update by @RandomHashTags
README.md fixesFoundationEssentials instead of Foundation where applicableHTMLElementType is now publicly available (commit)CONTRIBUTING.md to better reflect Swift standards and best practices (commit)HTMLExpansionContext for its underlying data and settings (commit)Sendable conformance where applicabledescription computed property and HTMLElement protocol)@inlinable annotation to many publicly accessible functions & propertiesuncheckedHTML macro to ignore compiler warnings (commit)anyHTML macro; same as html but returns an existentialrawHTML macro that doesn't escape the inner HTML, with the option to minify the resultanyRawHTML macro; same as rawHTML but returns an existentialStaticString equality to StringProtocol (commit)Full Changelog: 0.11.0...0.12.0
Bug fix update by @RandomHashTags
string produce the wrong result (it didn't account for how the string delimiter should be represented) (#3)escapeHTML macro not accounting for other HTMLEncodings (commit)htmlValue computed property to func htmlValue(encoding:) for HTMLInitializable (commit)HTMLKitUtilities.expandHTMLMacro (commit)encoding parameter to the #escapeHTML macro. Default is string and, if contained in a #html macro, the parent encoding (commit)CONTRIBUTING.md.swift-format.jsonA special thanks to @andrebraga for reporting bugs that were fixed in this release!
Full Changelog: 0.10.0...0.11.0