Questions tagged as 'pug'

1
answer

Defining default values to vary with the Pug Engine Template

I'm starting to work with MEAN and use the Pug template engine. I know the same was Jade previously and there have been updates on how to work with it. My problem is that in Jade, and in various places on the internet, I have the informatio...
asked by 20.01.2017 / 02:42
1
answer

List items of an object in the JS Pug, with Node and Mongo

I'm setting up a store, using Keystone JS, I installed the Pug JS and MongoDB dependencies. I created a model that is pointing to a view, called Tour.JS The problem is that I could not efficiently list all the items that are in the MongoDB...
asked by 01.11.2017 / 03:19
1
answer

Pre processors and how to work with them

Hello folks from the community, I have doubts about how to work with preprocessors, after all I will have to rewrite the code twice? or will I have to copy and paste into an online convertor? I have a lot of knowledge about using pug, stylus and...
asked by 22.04.2018 / 21:55
1
answer

Table with PUG in NodeJS

I'm using PUG template in NodeJS and am looking in documentation how to set up a table. I'm checking in "pugjs.org", but it apparently does not exist ... Does anyone know how to set up a table with PUG?     
asked by 14.07.2017 / 01:51
0
answers

Page is not rendering

I'm setting up a web application using Keystone JS. I configured some routes, and views, and also set up a "virtual store" structure to add and extend sightseeing tours. The problem, that due to some configuration, the site is not renderin...
asked by 06.11.2017 / 17:59
1
answer

How to load multiple routes in node.js in a .jade

Is there any way to load multiple routes within a same .jade file, for example: I can have a /menu route, another /header , another /clientes , when calling the /clientes route I give res.render('clientes') and...
asked by 26.09.2017 / 12:55
1
answer

Jade / Pug does not repeat the same code

I would like to know how to do not need to repeat codes, I do not know if using for , for example I have this code below that corresponds to a card with data of an educator I will have several of these where I will only change the data but...
asked by 23.03.2017 / 18:34
1
answer

How to make a script in pug engine

I'm trying to make a script that contains a function in the pug engine, but I can not get it to call when the user submits the form, can anyone help me? Here is the code: html head title= message script. funtion validator(){...
asked by 15.08.2018 / 15:09