feat(template): Restore open state

This commit is contained in:
Kyle Fuller
2016-12-01 18:41:25 +00:00
parent abae80d39d
commit 974b9c85a0
3 changed files with 10 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ let NSFileNoSuchFileError = 4
#endif
/// A class representing a template
public class Template: ExpressibleByStringLiteral {
open class Template: ExpressibleByStringLiteral {
let tokens: [Token]
/// Create a template with a template string
@@ -51,7 +51,7 @@ public class Template: ExpressibleByStringLiteral {
}
/// Render the given template
public func render(_ context: Context? = nil) throws -> String {
open func render(_ context: Context? = nil) throws -> String {
let context = context ?? Context()
let parser = TokenParser(tokens: tokens, namespace: context.namespace)
let nodes = try parser.parse()