colibri/Library/Sources/Public/Protocols/TemplateServicing.swift

17 lines
353 B
Swift
Raw Permalink Normal View History

public protocol TemplateServicing {
// MARK: Functions
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
}