Skip to content

Commit

Permalink
Update README for using with Config
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim authored May 19, 2017
1 parent f1dd75f commit 5c0480e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ Add Markdown Provider as a dependency in your `Package.swift` file:

### Add the Provider

You can add a provider to you `Droplet`, which will do all of the setup for you and register your tag. Just add it as so:
You can add a provider to you `Config`, which will do all of the setup for you and register your tag. Just add it as so:

```swift
let drop = Droplet()
try drop.addProvider(MarkdownProvider.Provider.self)
let config = try Config()
try config.addProvider(MarkdownProvider.Provider.self)
let drop = try Droplet(config)
```


Expand Down

0 comments on commit 5c0480e

Please sign in to comment.