diff --git a/CHANGELOG.md b/CHANGELOG.md index ecab972..61c9c05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,9 @@ _None_ ### Enhancements -_None_ +- Made the `tokens` property on a `Template` public. + [Stefanomondino](https://github.com/stefanomondino) + [#292](https://github.com/stencilproject/Stencil/pull/292) ### Deprecations diff --git a/Sources/Template.swift b/Sources/Template.swift index 2063e8c..75db2f5 100644 --- a/Sources/Template.swift +++ b/Sources/Template.swift @@ -9,7 +9,9 @@ let NSFileNoSuchFileError = 4 open class Template: ExpressibleByStringLiteral { let templateString: String var environment: Environment - let tokens: [Token] + + /// The list of parsed (lexed) tokens + public let tokens: [Token] /// The name of the loaded Template if the Template was loaded from a Loader public let name: String?