Questions tagged [pug]
Pug (formerly known as Jade) is a robust, elegant and feature-rich template engine for Node.js.
6,388
questions
0
votes
0
answers
9
views
Why is (data-reveal="bottom") blocking my Pug file from rendering in the browser?
I am trying to use Pug to create an HTML template, but I am encountering an issue where my Pug file is not rendering in the browser. I have narrowed down the problem to the usage of a custom attribute ...
1
vote
1
answer
24
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 ...
-1
votes
0
answers
30
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
0
answers
24
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 ...
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, ...
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
...
0
votes
1
answer
28
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
...
0
votes
0
answers
16
views
pug/uikit nav sidebar lost left padding after uikit upgrade
I forked from this https://github.com/chekromul/uikit-ecommerce-template
to build a static github page.
but after I upgrade uikit to latest version, the side navbar lost its left paddings.
before I ...
3
votes
2
answers
69
views
What is the order loaders applying in Webpack?
I am trying to setup the loading of .pug files by Webpack depending on interim filename extension, herewith it should be default one. In my case, the files which names ends with .vue.pug must me ...
1
vote
0
answers
21
views
How can I use the selected option value of a select element in Pug/Jade template
I have this select in Pug/Jade
select.form-select.col-xs-12.col-sm-12(id='selState1', onClick='+setState(selState1.value)')
option(value='selState1', name='selState1',id='selState1') ...
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 ...
1
vote
0
answers
58
views
How to get the static folder using Pug with Vite (Vituum, vite-plugin-pug…)
I'm using Pug for the first time with Vite and the plugin @vituum/vite-plugin-pug.
Here's the structure of my project:
src
js
css
static
imgs
image.jpg
views
pages
index.pug
I'd ...
1
vote
0
answers
29
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&...
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....
0
votes
1
answer
165
views
Vuetify v-menu color
I am trying to change the color of the dropdown background of a v-menu. Right now it is just white then in dark mode it is that dark gray.
I have tried the css override using this:
.v-menu__content {...