From 9a446440ff13a3b3499acb0c438e6a20e55316fc Mon Sep 17 00:00:00 2001 From: Avirup Dutta <39208694+avirupdutta@users.noreply.github.com> Date: Thu, 2 Jul 2020 11:35:55 +0530 Subject: [PATCH] updated docs for deprecated import statement in README.md --- Readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Readme.md b/Readme.md index 006d9f30..2fae845c 100644 --- a/Readme.md +++ b/Readme.md @@ -61,16 +61,16 @@ File issues for EJS v2 here: https://github.com/mde/ejs/issues ## Includes - Includes are relative to the template with the `include` statement, + Includes are relative to the template with the `include()` function, for example if you have "./views/users.ejs" and "./views/user/show.ejs" - you would use `<% include user/show %>`. The included file(s) are literally + you would use `<%- include("user/show") %>`. The included file(s) are literally included into the template, _no_ IO is performed after compilation, thus local variables are available to these included templates. ```
My page
-<% include foot %> +<%- include("foot") %> ``` ## client-side support