Merge pull request #29 from chunkerchunker/template-url-init

bugfix for loading Template from URL
This commit is contained in:
Kyle Fuller
2015-09-29 17:08:18 -07:00

View File

@@ -25,7 +25,7 @@ public class Template {
/// Create a template with a file found at the given URL /// Create a template with a file found at the given URL
public convenience init(URL:NSURL) throws { public convenience init(URL:NSURL) throws {
try self.init(path: Path(URL.absoluteString)) try self.init(path: Path(URL.path!))
} }
/// Create a template with a file found at the given path /// Create a template with a file found at the given path