From bc765705a8b16a78ac5a361bf0a69abd10cab63b Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Sat, 25 Jan 2025 00:27:47 +0100 Subject: [PATCH] Defined the "render(_: on: )" function for the TemplateServicing protocol in the library target. --- Library/Sources/Public/Protocols/TemplateServicing.swift | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Library/Sources/Public/Protocols/TemplateServicing.swift diff --git a/Library/Sources/Public/Protocols/TemplateServicing.swift b/Library/Sources/Public/Protocols/TemplateServicing.swift new file mode 100644 index 0000000..ec6ba22 --- /dev/null +++ b/Library/Sources/Public/Protocols/TemplateServicing.swift @@ -0,0 +1,7 @@ +public protocol TemplateServicing { + + // MARK: Functions + + func render(_ object: Any, on template: String) async throws (RenderServiceError) -> String + +}