We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3405f60 commit e436ee4Copy full SHA for e436ee4
Sources/HtmlSwift/Lib.swift
@@ -0,0 +1,18 @@
1
+//
2
+// https://github.com/atacan
3
+// 04.06.23
4
+
5
+public enum SwiftDSL: String, CaseIterable, Identifiable {
6
+ public var id: Self { self }
7
+ case pointFree = "Point-Free Co."
8
+ case binaryBirds = "Binary Birds (Feather)"
9
+}
10
11
+public func htmlToSwift(_ html: String, for dsl: SwiftDSL, component: HtmlOutputComponent) throws -> String {
12
+ switch dsl {
13
+ case .binaryBirds:
14
+ return try convertToBinaryBirds(html: html, component: component)
15
+ case .pointFree:
16
+ return try convertToPointFree(html: html, component: component)
17
+ }
18
0 commit comments