Skip to main content

Questions tagged [pug]

Pug (formerly known as Jade) is a robust, elegant and feature-rich template engine for Node.js.

0 votes
2 answers
59 views

How to make three texts position on top of each slots respectively?

Description I am developing a random name picker web app and I'd like to know how to make three texts positioned on top of each slot and aligned center in each slot simultaneously. The current image ...
-1 votes
1 answer
32 views

Can I use pug template with angular builder esbuild?

In angular 17, I am using "builder": "@angular-builders/custom-webpack:browser". Now I want to use esbuild buider. But my project currently use pug template alter for html. Can I ...
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 ...
5 votes
1 answer
2k views

How to get context vnode in vue 3 directives

Сan't get context from directive <template lang="pug"> div(class="form") select(name="name" v-model="form.input" v-select="form.inputs&...
1 vote
1 answer
35 views

Colon symbol in class names for tailwind break Pug files

I am creating a project in Vue where the HTML aspect of it is written in pug. When I add a tailwind class, (for example in this case I am trying to add the classes ) .w-16.md:w-32.lg:w-48 Since it is ...
0 votes
1 answer
2k views

Axios CDN link refused to load

I am using the axios CDN link but it gives this error Refused to load the script 'https://unpkg.com/axios/dist/axios.min.js' because it violates the following Content Security Policy directive: "...
-1 votes
0 answers
31 views

Who manages logins the API or the front end web app [duplicate]

I'm working in a team where I'm developing an ASP.NET Core 8.0 Web API for a multi tenant application that returns results from a SQL Server database, and someone else is developing a web portal that ...
0 votes
1 answer
337 views

Call a function on click pugjs

I want to make a reversal to img when clicking img as pugjs code This is my javascript code <div class="cards" id="cards" data-status="off"> <img class="...
0 votes
0 answers
26 views

How can I enable Intellisense support for .pug files in vscode?

My angular project use pug template, is there any way setup intellisense for pug template file? I had tried package pugjs-angular-language-service. But it didn't work, it will better if it has ...
31 votes
4 answers
31k views

How does `aws s3 sync` determine if a file has been updated?

When I run the command in the terminal back to back, it doesn't sync the second time. Which is great! It shouldn't. But, if I run my build process and run aws s3 sync programmatically, back to back, ...
0 votes
2 answers
37 views

Pug can't read array, but only if iterating through it

I am working on a small Web-development project, express with pug as the view-engine, for my University-course. I wish to iterate through an array of Weather-stations, creating a route for every one, ...
2 votes
1 answer
2k views

Concatenate a variable inside an ID attribute in Pug

I'm trying to create incrementing id attributes using variable interpolation in a loop. ul - for(var i = 0; i < 3; i++) li#id#{i} I expected to get the below, but it doesn't work. li#id0 li#...
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 ...
5 votes
3 answers
4k views

Cookie works when I use Postman, but does not show in browser

I am working on a Nodejs Project and pug template. When I login on postman, Cookie is sent, but when I use Chrome or any other browser, It does not show cookie const signToken = (id) => { return ...
21 votes
4 answers
91k views

getting RangeError [ERR_HTTP_INVALID_STATUS_CODE]: Invalid status code: undefined in express app

I am getting the above error when running the following code in my express app. When I go to localhost:3000/cards. This is in my cards.js file. const express = require('express'); const router = ...

15 30 50 per page
1
2 3 4 5
432