Problem: I want to read a user input on the client-side, do some processing on the variable using JavaScript, still on the client-side, then POST the modified v
Error File structure Route app.get("/api/animation/:token_id", (req, res) => { const tokenId = req.params.token_id; const data = generateWorldData(); c
I want to include header.ejs and footer.ejs into order.ejs. The image below my folder structure. But, I've got error. The code related to include in order.ejs
I'm moved styles.css file to every location in my project and tried to link it in html file. I moved it even in the same folder where html files are, href auto
rotas ´´´ <%- include() %> ´´´ como posso usando include colocar o header.ejs que se encontra dentro do parts no arqui
rotas ´´´ <%- include() %> ´´´ como posso usando include colocar o header.ejs que se encontra dentro do parts no arqui
I'm using firebase to sign in my users on my node js app. I would like to see if the user is authentificated or not and after it redirect to the page I want (lo
I need to display a value from a JS file (indexRoutes.js) into an input box on an EJS template (calculator.ejs), I have included the script via a footer I have
I'm trying to attach a click event from my ejs file but I noticed that when my data coming from my database has a "newline", I get an error that says: Unexpecte
This is my controller file async function getUsers(req, res, next) { try { const users = await User.find(); res.render('users', {
I have this node.js app where you can post comments on teachers profiles. teacher.ejs <!-- Form --> <div class=""> <form id="commentsForm"
This is what appears on my mongo database: This is my app.post to insert the data, when I Submit it console.log the object with the dates but with create It ju
I am trying to generate a PDF in browser(chrome v8) using HTML by sending it to puppeteer. The html is getting generated using ejs since there is dynamic conte
i am making a flask app and usually i would do the following code: from flask import ( Flask, render_template, request ) app = Flask(__name__) @
When I try to add new blog posts to my website I am continuously getting this error: TypeError: C:\Users\shruti\Desktop\ejs-challenge\views\home.ejs:15 13| 14|
<div style="display: flex; flex-wrap: wrap; justify-content: center;"> <% guser._roles.forEach(async el => { let urole = await guild.roles.cache.g
app.get('/secrets', function(req, res){ User.find({'secret': {$ne: null}}, function(err, foundUser){ if(err){ console.log(err); } else{ if(foundUser){
I try to draw chart, using chart.js. To get my data, I try to use ejs tags for example, in ejs I input html like this, and it works well. <p>date
I am absolute beginner concerning javascript, express, node, ejs, etc, please go easy on me. :D I am creating a website, which is a gallery of my projects. You
I'm trying to include partials in a for loop in EJS. <% let index = 1 %> <% for (let item in db) { %> <div class="box unfocused box_<