Skip to main content

All Questions

Tagged with
1 vote
1 answer
43 views

How do I use a module rendered by the controller with a Jade/Pug template as an argument to an event handler in the Jade/Pug template

I have this module naija passed to a template from the controller like this: res.render('testing', {title:"filter setting page", nigeria:naija ...
Femi's user avatar
  • 21
0 votes
1 answer
29 views

I get null in req.body when submitting data through pug form

this is pug form which is sending data to the requested url form.form.form-user-data(action='/submit-user-data' method='POST') .form__group label.form__label(for='name') Name ...
harshit's user avatar
1 vote
0 answers
36 views

Render block content with pug doesn't work

I'm face off an issue with Pug engine template. I can't inject the content of a Pug file into my layout, nothing is render! I have a home.pug which extends layout.pug, these two files are in the same ...
EmmanuelL's user avatar
1 vote
0 answers
34 views

Read JSON in Pug NodeJs

I am sending a variable in the rendering response of my index view on my website, this variable is a JSON, but I cannot read it in Pug. JSON: { "expirepass": false, "memberships&...
Francisco Castillo's user avatar
0 votes
0 answers
24 views

How to read a json with pug NodeJs?

I am sending from node to my pug template a json in the response like this: res.render("memberships", { title: "DashRoc - Membresías", settings: JSON.parse(req.session....
Francisco Castillo's user avatar
0 votes
0 answers
15 views

Array send by post form always received as string with first element only in Node js Express with pug

enter image description here { name: 'THERAPY 1', testsuites: '65e93cc4950e6a858809348f', description: 'UPDATED The pump software shall provide the Maximum Bolus Value therapy setting value ...
Kartik Aiyar's user avatar
0 votes
0 answers
30 views

how to make html div displays as 3 Column in pug

i want to display .course-item as 3 Column the .course-item in inside foreach which gets data from data base to create .course-item div but it all displays as one Column.. how can i fix it this is my ...
Rami's user avatar
  • 1
0 votes
1 answer
26 views

the gulp-pug doesn't work and say unexpected token "indent"

the gulp-pug doesn't work and say unexpected token "indent" see the images below gulp code and nodejs command prompt index.pug and nodejs command prompt package.json and nodejs command ...
M39ob Elzero's user avatar
1 vote
1 answer
34 views

Express using default error handling page instead of view?

I'm following this MDN Express tutorial on creating a "Local Library" app, that uses Pug (Jade) as its templating engine. In this part of the tutorial, it details creating a controller for ...
mehkij's user avatar
  • 27
0 votes
0 answers
38 views

Mongoose data not showing on the web page as expected

I am creating a web app for keeping notes using mongodb, node.js, express and pug. When I load the home page the notes are arranged in order of date created. When I click the button to arrange the ...
AllThingsShiny's user avatar
0 votes
0 answers
52 views

How to add custom arabic font for pdf in pug file in node js project

I am using wkhtmltopdf libarary to convert pug file to PDF and in pug file I have text in arabic and english but I want specific font for arabic text to show in PDF file I tried it but it is giving ...
Sohaib Ul Hassan's user avatar
0 votes
1 answer
80 views

Unable to access a property of an object using Mongoose

Sample data: { "_id": "ObjectId_for_Site1", "name": "Site 1", "address": "123 Reeganangam", "manager": { "_id&...
Ashok Kumar Maharajan's user avatar
0 votes
1 answer
87 views

express locallibrary tutorial author names missing from book list

I'm trying to build some knowledge in back end development (because I need it!) after spending a few years on front end, and after a short intro' into Basic Node and Express from the fantastic ...
Fishbite's user avatar
  • 192
0 votes
0 answers
247 views

How to integrate Vite into an existing old express app with pug templates

I have an old code that uses Express and renders HTML with pug. It uses plain js files and imports them like: script(type='text/javascript' src='js/test.js') They use jquery all around those js files. ...
H3lltronik's user avatar
0 votes
0 answers
38 views

Cant use pug module with parcel?

I am trying to rendering the content with the pug template but I cant import the pug modules into this file, i'm using parcel to bundle all the js file also. Here is the code: import html from ".....
NtotheKtotheL's user avatar

15 30 50 per page
1
2 3 4 5
237