Remove unnessecary uses of Foundation

This commit is contained in:
Kyle Fuller
2015-11-21 14:06:04 +00:00
parent dc774fe43b
commit c86ab9c5b9
5 changed files with 40 additions and 55 deletions

View File

@@ -1,12 +1,11 @@
import Foundation
import PathKit
public class IncludeNode : NodeType {
public let templateName:String
public let templateName: String
public class func parse(parser:TokenParser, token:Token) throws -> NodeType {
let bits = token.contents.componentsSeparatedByString("\"")
public class func parse(parser: TokenParser, token: Token) throws -> NodeType {
let bits = token.contents.characters.split("\"", allowEmptySlices: true).map(String.init)
guard bits.count == 3 else {
throw TemplateSyntaxError("'include' tag takes one argument, the template file to be included")
@@ -15,7 +14,7 @@ public class IncludeNode : NodeType {
return IncludeNode(templateName: bits[1])
}
public init(templateName:String) {
public init(templateName: String) {
self.templateName = templateName
}