From 99cc1cac4a765932ef4c2f16d32ba21928199ac0 Mon Sep 17 00:00:00 2001 From: David Jennes Date: Tue, 26 Jul 2022 15:08:30 +0200 Subject: [PATCH] Make render with context public --- Sources/Template.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Template.swift b/Sources/Template.swift index 75db2f5..c07be62 100644 --- a/Sources/Template.swift +++ b/Sources/Template.swift @@ -67,7 +67,7 @@ open class Template: ExpressibleByStringLiteral { } /// Render the given template with a context - func render(_ context: Context) throws -> String { + public func render(_ context: Context) throws -> String { let context = context let parser = TokenParser(tokens: tokens, environment: context.environment) let nodes = try parser.parse()