Defined the "render(_: on: )" function for the TemplateServicing protocol in the library target.
This commit is contained in:
parent
17734dadee
commit
1de9738e6e
@ -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
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user