Defined the "render(_: on: )" function for the TemplateServicing protocol in the library target.

This commit is contained in:
Javier Cicchelli 2025-02-04 20:58:14 +01:00
parent 17734dadee
commit 1de9738e6e

View File

@ -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
}