diff --git a/CHANGELOG.md b/CHANGELOG.md index e30b8c70..1c10086f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ _None_ - Made the `tokens` property on a `Template` public. [Stefanomondino](https://github.com/stefanomondino) [#292](https://github.com/stencilproject/Stencil/pull/292) +- Made the `Template.render(_:)` method (that accepts a `Context`) public. + [David Jennes](https://github.com/djbe) + [#322](https://github.com/stencilproject/Stencil/pull/322) ### Deprecations diff --git a/Sources/Template.swift b/Sources/Template.swift index 75db2f5d..c07be628 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()