Skip to content

Commit

Permalink
Merge pull request #7 from vapor-community/name-tidyup
Browse files Browse the repository at this point in the history
Update name in Provider Error that was left over in fork
  • Loading branch information
0xTim committed Oct 21, 2017
2 parents 7b2f97e + 23c5ddc commit 554143d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ script:
fi

after_success:
- eval "$(curl -sL https://raw.githubusercontent.com/vapor-community/swift/master/codecov)"
- eval "$(curl -sL https://raw.githubusercontent.com/vapor-community/swift/swift-4-codecov/codecov-swift4)"
10 changes: 5 additions & 5 deletions Sources/MarkdownProvider/Provider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ import Vapor
import LeafProvider

public struct Provider: Vapor.Provider {

public static let repositoryName = "markdown-provider"

public func boot(_ drop: Droplet) {
guard let renderer = drop.view as? LeafRenderer else {
print("LeafMarkdown only supports Leaf as a renderer")
print("Markdown Provider only supports Leaf as a renderer")
return
}

renderer.stem.register(Markdown())
}

public init(config: Config) throws {}
public init() {}
public func boot(_ config: Config) throws {}
Expand Down

0 comments on commit 554143d

Please sign in to comment.