Make render with context public
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user