Top "Ejs" questions

"E" is for "embedded.

Pass variables to JavaScript in ExpressJS

I am completely lost on this; I am using NodeJS to fetch a JSON and I need to pass the …

javascript node.js express ejs
What are the pros and cons of both Jade and EJS for Node.js templating?

Jade versus EJS, what are the pros and cons of each and what purposes are each designed for? Are there …

node.js pug ejs
Accessing EJS variable in Javascript logic

I'm working on a Node.js app (it's a game). In this case, I have some code set up such …

javascript node.js express ejs
In EJS template engine, how do I "include" a footer?

Let's say I saved a snipplet of a footer. How do I "include" that in my current template?

javascript html templates ejs
Express and ejs <%= to render a JSON

In my index.ejs I have this code: var current_user = <%= user %> In my node I have app.…

javascript json express ejs
Passing an object to client in node/express + ejs?

I have a pretty large object that I need to pass to a function in a client script. I have …

node.js express ejs
Interweave EJS and Javascript variables inside <% tags

I need to use a Javascript variable (defined in the front-end) in some EJS code, as follows: var selected = 1; <% …

javascript node.js express ejs
Why is express telling me that my default view engine is not defined?

I'm using nodejs and mongodb in the back end for an app I'm working on. I'm using express to test …

node.js mongodb express mongoose ejs
Chart.js creating a line graph using dates

I can't seem to get Chart.js to work with dates. I have tried quite a few different methods: let …

javascript date chart.js ejs
Can a js script get a variable written in a EJS context/page within the same file

As I wrote in the title, I'd like to get a value from a variable written into a ejs page/…

javascript scope ejs