From 052525fd0b7a9c8e9b3eb5f3b307a3a7d13a7b6b Mon Sep 17 00:00:00 2001 From: vikin <986465329@qq.com> Date: Fri, 16 Sep 2016 20:53:10 +0800 Subject: [PATCH] update call view command update call view command ```swift drop.view -> drop.view.make ``` --- guide/views.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)