Merge pull request #29 from chunkerchunker/template-url-init
bugfix for loading Template from URL
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user