Defined the "render(_: on: )" function for the TemplateServicing protocol in the library target.
This commit is contained in:
@@ -2,6 +2,15 @@ public protocol TemplateServicing {
|
|||||||
|
|
||||||
// MARK: Functions
|
// MARK: Functions
|
||||||
|
|
||||||
func render(_ object: Any, on template: String) async throws (RenderServiceError) -> String
|
func render(_ object: Any, on template: String) async throws (TemplateServiceError) -> String
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MARK: - Errors
|
||||||
|
|
||||||
|
public enum TemplateServiceError: Error {
|
||||||
|
case contentNotRendered
|
||||||
|
case resourcePathNotFound
|
||||||
|
case serviceNotInitialized
|
||||||
|
case templateNotFound
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user