diff --git a/readme.md b/readme.md index c663110..bdb4ee9 100644 --- a/readme.md +++ b/readme.md @@ -82,8 +82,8 @@ Suppose you have a folder like this: ``` ```ts // app.ts -import { Application } from "https://deno.land/x/oak@v10.5.1/mod.ts"; -import { viewEngine, ejsEngine, oakAdapter } from "https://deno.land/x/view_engine@v10.5.1c/mod.ts" +import { Application } from "https://deno.land/x/oak@v10.6.0/mod.ts"; +import { viewEngine, etaEngine, oakAdapter } from "https://deno.land/x/view_engine@v10.6.0/mod.ts" const app = new Application(); @@ -93,7 +93,7 @@ app.use( }) ); -app.use(async (ctx, next) => { +app.use((ctx) => { ctx.render("index.eta", { name: "John" } ); });