Questions tagged as 'jade'

1
answer

How to solve this jade error?

I'm just getting started on nodeJS and I'm using JADE as view engine , I'm just doing tests, nothing extraordinary, and yet throws the following error: C:\Users\Familia\Documents\node\expres\node_modules\promise\index.js:1 (function (exports,...
asked by 01.04.2018 / 23:25
3
answers

Total sum of a column

I have this column of a table in html which I need to do a total sum and the result insert it a input text type td(class='sumTtotal') This is my td where each result of the dif $ remains What I was trying to do i...
asked by 26.07.2017 / 16:11
1
answer

Display an arrangement of a mongodb document in html / jade

Greetings, I have a problem and I do not know how to consult the elements of a document that has an arrangement and show them in Jade. Recibo.aggregate( {"$match":{"nombre":{"$in":req.body.listNombrePTC},"fecha":{"$gte": lastWeekDay, "$lte": t...
asked by 09.02.2017 / 22:11
2
answers

how to create an input type = 'button' in jade?

I have this code but when I click it does not redirect. What I can do? input.waves-effect.waves-light.btn-large.red.accent-3(type='button', onclick=location="'../formulario.html'", value="Registrarse")     
asked by 16.11.2016 / 13:36
2
answers

Events in node js

I want to use a function when a button is pressed. In the jade file, I have already put the path where the file with the function is located, but clicking the button tells me that the method is not defined. What is the folder wher...
asked by 16.11.2016 / 03:24
2
answers

How to compile pug (before jade) to php with gulp?

I am working on a project that is necessary to work with .php, I have always worked with .html, but now I have to work with .php, I work with pug before called jade and I compile it by means of tasks in gulp, but by default compiled in html, but...
asked by 14.10.2016 / 06:40
2
answers

How to send an object / array from node to pug (jade) and render it?

Since node, I have something like this: var nombres = ['Saab','Volvo','BMW']; app.get('/', function(req, res){ res.render('index', {nombres: nombres}); }); then in pug: - var nombres1 = {nombres}; html(lang="es") head title= "Itris INF...
asked by 26.07.2017 / 02:31
2
answers

Going through a json, jade

I'm trying to run a json in jade but I have problems, because I get trash data. usuarios={ _id: 57e66c6b0d38b61f3c0e626b, name: 'asdas', lastName: 'dasdasd', userName: 'dasd', password: 'ada', __v: 0 },{ _id: 57e66e16228d2f0674a90af5, name: 'd...
asked by 10.10.2016 / 09:50
3
answers

Use interpolation in Jade inside each

I am trying to iterate with an each in Jade, to generate a menu, but inside the to the href I do not iterate the array pages using the interpolation # {page}. However outside that label if it works. -var paginas = ["inicio","nosotros","servi...
asked by 26.12.2016 / 00:21
2
answers

Arrangement control in Jade template

I'm doing an application where I read a database in MySQL (MariaDB) and the result (an array) I render it to a template in jade. I try to create a slider for 8 images in 4 columns Bootstrap and 2 images with descriptive information in...
asked by 28.04.2017 / 17:22