and if yes, what is the syntax? My goal is to prepend an \'s\' to the word \'comment\' when there is more than one. in an jQuery.ejs template in a JMVC app. The following br
Just making code shorter you can use ES6 features. The same things can be written as
app.get("/recipes", (req, res) => { res.render("recipes.ejs", { recipes }); });
And the Templeate can be render as the same!
<%if (recipes.length > 0) { %> // Do something with more than 1 recipe <% } %>