Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 committed Jun 28, 2016
1 parent 53cc79b commit 6cafa05
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 @@ -10,7 +10,7 @@ To add `VaporMustache`, add the following package to your `Package.swift`.

`Package.swift`
```swift
.Package(url: "https://github.com/qutheory/vapor-mustache.git", majorVersion: 0, minor: 5)
.Package(url: "https://github.com/qutheory/vapor-mustache.git", majorVersion: 0, minor: 8)
```

### Provider
Expand Down Expand Up @@ -53,11 +53,12 @@ To use includes, you must specify them ahead of time to the `MustacheRenderer`.
Simply add them as the Provider's `includeFiles`.

```swift
let provider = VaporMustache.Provider(withIncludes: [
let mustache = VaporMustache.Provider(withIncludes: [
"header": "Includes/header.mustache",
"footer": "Includes/footer.mustache"
])
app.providers.append(provider)

let app = Application(providers: [mustache])
```

The path will be appended to `Resources/Views/...` by default.
Expand Down

0 comments on commit 6cafa05

Please sign in to comment.