diff --git a/guide/views.md b/guide/views.md index bd4e7511..7ec1e06e 100644 --- a/guide/views.md +++ b/guide/views.md @@ -16,7 +16,7 @@ Returning HTML, or any other non-rendered document, is simple. Just use the path ```swift drop.get("html") { request in - return try drop.view("index.html") + return try drop.view.make("index.html") } ``` @@ -26,7 +26,7 @@ Templated documents like mustache or stencil templates can take a `Context`. ```swift drop.get("template") { request in - return try drop.view("index.template", [ + return try drop.view.make("index.template", [ "message": "Hello, world!" ]) } @@ -53,4 +53,4 @@ View.renderers[".mustache"] = MustacheRenderer() These renderers can be added to your application through Providers. - [Mustache](https://github.com/vapor/mustache-provider) -- [Stencil](https://github.com/vapor/stencil-provider) \ No newline at end of file +- [Stencil](https://github.com/vapor/stencil-provider)