From bda7518a99f7a9e6087e5ede05716700acf354e2 Mon Sep 17 00:00:00 2001 From: Daniel Rashevsky <42165879+drashevsky@users.noreply.github.com> Date: Sun, 16 Feb 2025 00:04:39 -0800 Subject: [PATCH] Fixed broken example in README describing parameter passing w/ includes --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5086d36..e0a9c70 100644 --- a/README.md +++ b/README.md @@ -158,7 +158,7 @@ There's no need for all that in a static website. If you do have a case for it, ```ejs en.ejs: <%- include('_content.ejs', {lang: 'en'}) %> fr.ejs: <%- include('_content.ejs', {lang: 'fr'}) %> -_content.ejs: <%= content[lang].body %> (use either content/en.md or content/fr.md) +_content.ejs: <%= content[locals.lang].body %> (use either content/en.md or content/fr.md) ``` #### How do I add pagination?