-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make the features flag available to vapor * Tidy up a bit * Silence deprecation warning of nsdictionary * Update readme * Silence warning of shadowing type parameters
- Loading branch information
1 parent
cb34198
commit 57ec613
Showing
14 changed files
with
195 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/// An option set of features. | ||
public struct Features: OptionSet { | ||
|
||
public var rawValue: Int | ||
|
||
public static let markdown = Features(rawValue: 1 << 0) | ||
|
||
public init(rawValue: Int) { | ||
self.rawValue = rawValue | ||
} | ||
} |
14 changes: 0 additions & 14 deletions
14
Sources/HTMLKit/Framework/Rendering/Renderer+FeatureSet.swift
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
public class Security { | ||
public final class Security { | ||
|
||
public var autoEscaping: Bool | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import HTMLKit | ||
|
||
/// Holds the renderer configuration | ||
public final class Configuration { | ||
|
||
/// Holds the localization configuration | ||
internal var localization: HTMLKit.Localization | ||
|
||
/// Holds the environment configuration | ||
internal var environment: HTMLKit.Environment | ||
|
||
/// Holds the security configuration | ||
internal var security: HTMLKit.Security | ||
|
||
/// Holds the enabled features | ||
internal var features: HTMLKit.Features | ||
|
||
/// Creates a configuration | ||
public init() { | ||
|
||
self.localization = Localization() | ||
self.environment = Environment() | ||
self.security = Security() | ||
self.features = [] | ||
} | ||
} |
Oops, something went wrong.