Template support for input parameters #4
@ -2,6 +2,15 @@ public protocol TemplateServicing {
|
||||
|
||||
// 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