Most voted "pug" questions
9 questions
Sort by count of
-
4
votes1
answer146
views -
1
votes1
answer193
viewsSetting default values for variable with Pug Template Engine
I am starting to work with MEAN and use as template engine Pug. I know that the same was Jade before and that there were updates on how to work with the same. My problem is that, in Jade, and in…
-
1
votes1
answer129
viewsList items of an object in Pug JS, with Node and Mongo
I’m setting up a store, using Keystone JS, installed the dependencies Pug JS and Mongodb. I created a model that is pointing to a view, called Tour.JS The problem is that I couldn’t efficiently list…
-
0
votes1
answer95
viewsJade/Pug not repeat the same code
I would like to know how to do not need to repeat codes, I do not know if using the for, for example I have this code below that corresponds to a card with data from an educator I will have several…
-
0
votes1
answer139
viewsTable with PUG in Nodejs
I am using PUG template in Nodejs and I am looking in the documentation how to assemble a table. I am checking in "pugjs.org", but apparently there is... Does anyone know how to mount a table with…
-
0
votes1
answer89
viewsHow to load multiple routes in Node.js in a . jade
Is there any way to load multiple routes within the same file .jade, for example: I may have a route /menu, another /header, another /clientes, when calling the route /clientes give a…
-
0
votes0
answers83
viewsPage is not rendering
I am configuring a web application using Keystone JS. I set up some Routes, and views, and also already set up a "virtual store" structure to add and exlcuir sightseeing tours. The problem, that due…
-
0
votes1
answer46
viewsPre processors and how to work with them
Hello community people, I doubt how to work with pre processors, after all I have to rewrite the code twice ? or will I have to copy and paste into an online converter? have mto enteresse in using…
-
-1
votes1
answer291
viewsHow to make a script in the Pug engine
I’m trying to make a script that contains a function in the Pug engine, but I can’t get it called when the user sends the form, can anyone help me? Follows the code: html head title= message script.…