Make render with context public

This commit is contained in:
David Jennes
2022-07-26 15:08:30 +02:00
parent 779820ed99
commit 99cc1cac4a

View File

@@ -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()