Questions tagged [ejs]
"E" is for "embedded." EJS is a simple templating language that lets you generate HTML markup with plain JavaScript. No religiousness about how to organize things. No reinvention of iteration and control-flow. It's just plain JavaScript.
6,519
questions
-4
votes
0
answers
21
views
Good day. I'm Asadbek from Uzbekistan [closed]
I'm working on ejs express project and why when i set url to route handler like /contract ejs is being rendered properly but when i set api like /all-org/contracts is not rendring properly.
My routes ...
-1
votes
1
answer
62
views
css doesn't apply on a page but apply to others
I'm following a course and I'm building this web site where I'm using ejs .
I'm encountering 2 problems, first this page doesn't show and keeps loading until I stop the loading
Second when it loads ...
-4
votes
0
answers
27
views
One particular route not working in express js and ejs [closed]
I am new to express and ejs and was trying to make a notes app, everything else is going all right but this particular route /files/:filename isn't working at all don't know why.
Here is my express js ...
1
vote
0
answers
37
views
Cannot get data with Mongoose .populate()
Listing schema :
const listingSchema = new Schema({
title : {
type :String,
required : true,
},
description : String,
image : {
type : String,
default :
...
1
vote
1
answer
26
views
How to Ensure that Clicks on <li> Element in Nav Bar Correctly Redirect Authenticated Users to the Dashboard Page?
I'm experiencing an issue with my web application where clicking on an account icon behaves inconsistently. When I click near the edge of the account icon, it correctly redirects to the dashboard page....
0
votes
2
answers
61
views
How to implement this npm library with javascript and NodeJS
I'm getting back into internet programming after taking a class on it a few years ago and I'm trying to implement a library into my website.
For this project, I want to use these animated diagrams of ...
0
votes
0
answers
38
views
want to create an archived section based on the expiry date
There are couple of listings and they have an end date set with them . I actually wanted to create a seperate route for the archived section, so basically whichever listing crosses the end date they ...
-1
votes
2
answers
47
views
How to print data from a form as a list item?
I’m trying to make this post feature where the user can enter a number of names, and each name will be printed as a list item in ascending order like this:
Bruce Wayne
Peter Parker
Clark Kent
I've ...
-1
votes
0
answers
65
views
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017
I'm having problem using mongodb. I downloaded as said in docs for debian (i'm using kali linux) and first day it was fine. Everything i did worked well. Now for second boot up it started giving me ...
0
votes
1
answer
78
views
How do I create charts on my javascript website using data from mySQL database. Using EJS front-end
I am making a website where I can enter data for golf course greens, and then analyze it.
I am using express in my backend to route to my ejs pages. I am also using a mySQL database to store the data.
...
0
votes
1
answer
35
views
How to create a item in the Todo list
When you make a new item on the todo list it makes a new row but when you make a second one instead of making a new item on the todo list it changes the previous one. How would you go around making a ...
0
votes
0
answers
51
views
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at (CORS request did not succeed). Status code: (null)
I want to deploy my node.js on vps. my project tech stack is node.js , express , peer.js and socket.io I deployed the project on server but cors blocked error occurs
Picture of the error is
I am ...
0
votes
0
answers
23
views
If i try to set src of an img variable that is not a valid url in ejs template, it throws an error [duplicate]
This is the code to fetch data from mongodb and then send it to ejs template to render.
the data object is fetched correctly, I checked by console.log the data object,and there are no validators set ...
-2
votes
1
answer
47
views
Node js ejs variable not define issue
i am mern stack developer and i don't have any experience in this field. I have tried all method to solve the below problem but it gives error
my template file is
<!DOCTYPE html>
<html lang=&...
0
votes
1
answer
23
views
Error while trying to create variables for title and price through Stripe embedded checkout
I keep getting the error, Stripe error :"You must specify either product or product_data when creating a price". I'm a bit lost in how to fix this issue and would very much appreciate some ...