From 7f79048b08221b43dbb82954d54a60831a5de95b Mon Sep 17 00:00:00 2001 From: Rohit Paul <113459757+RohitPaul0007@users.noreply.github.com> Date: Tue, 12 Sep 2023 12:36:50 +0530 Subject: [PATCH] Update list.js --- examples/list.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/list.js b/examples/list.js index ec614ed6..735d9225 100644 --- a/examples/list.js +++ b/examples/list.js @@ -3,12 +3,12 @@ * Module dependencies. */ -var ejs = require('../') +let ejs = require('../') , fs = require('fs') , str = fs.readFileSync(__dirname + '/list.ejs', 'utf8'); -var ret = ejs.render(str, { +let ret = ejs.render(str, { names: ['foo', 'bar', 'baz'] }); -console.log(ret); \ No newline at end of file +console.log(ret);