From 6cafa05d35d3c0cb180d8d01cca25906c041c0ce Mon Sep 17 00:00:00 2001 From: Tanner Nelson Date: Tue, 28 Jun 2016 16:13:37 -0400 Subject: [PATCH] update readme --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6fa8f8d..04b6ff1 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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.