Skip to content

Commit

Permalink
[Template] Set default value for bundle initialiser
Browse files Browse the repository at this point in the history
  • Loading branch information
kylef committed Oct 2, 2015
1 parent 8f33456 commit 1136ca8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Stencil/Template.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,8 @@ public class Template {
public let parser:TokenParser
private var nodes:[NodeType]? = nil

/// Create a template with the given name inside the main bundle
public convenience init(named:String) throws {
try self.init(named:named, inBundle:nil)
}

/// Create a template with the given name inside the given bundle
public convenience init(named:String, inBundle bundle:NSBundle?) throws {
public convenience init(named:String, inBundle bundle:NSBundle? = nil) throws {
let url:NSURL

if let bundle = bundle {
Expand Down

0 comments on commit 1136ca8

Please sign in to comment.