Questions tagged as 'jade'

1
answer

Enter several links with Jade

Good morning, I would like to know how I can put several "links" with Jade, I am doing it in the following way: doctype html html(lang="es") head title Powergraph meta(charset="utf-8") link(href="https://maxcdn....
asked by 14.04.2017 / 09:10
1
answer

Mark mark in jade does not work

I have the following code that dynamically marks what the user writes, note that pure html is used, but when it happens to jade it does not work var normal, destacado, texto, entrada; function inicializar()...
asked by 23.12.2016 / 17:11
0
answers

Traveling data from a query to the BD in Jade does not show them

I have a route where I make a query to the database, to try to send them to view in this way router.get('/all', (req, res, next) => { connection.query('SELECT * FROM users', (err, rows, fields) => { res.render('index', { rows...
asked by 17.11.2018 / 06:17
1
answer

Replace one template with another in nodejs

I have a doubt .. Attach a button to close session. You already create the event and everything is fine. But how can I tell the server to send me the welcome page? Use nodejs server. And in the front javascript ... The welcome page is a...
asked by 28.01.2018 / 00:25
1
answer

How to create a query to two different tables and render them in the same view with Node js Express

Good afternoon, my name is Diego Castaño, I am new to this community and I need a favor from some of you. In a view (vConfExit.jade) I have two select and I need to fill them with two different tables that I have in a database, I have managed...
asked by 23.11.2017 / 20:48
3
answers

Gulp-pug does not work

I'm trying gulp and in particular the gulp-pug plugin to compile Pug. It does not seem to have much science to make it work but nevertheless there is no way. I'm not doing any project, I'm just trying the 'task runner' Gulp and in parti...
asked by 20.03.2017 / 22:24
1
answer

fill variables with express middleware js

I'm trying to fill a variable with a middleware that receives information through a request json and I'm storing it in a global variable which I later use in a render with pug, but the first loads return an empty variable, How can I ensure that...
asked by 20.01.2017 / 16:34
2
answers

how to make an input type radio in jade?

save.jave file extends ../layout block content h1 Guardar usuarios form(method="post", action="#{action}") label Nombre br input(type="text",name="nombre",required="required", value="# {programmers.nombre}") br label...
asked by 17.11.2016 / 14:26
1
answer

How can I fix this error in expressjs in the view? [JADE]

I'm using express with jade. I am trying to do a factorial with an entry, but I can not visualize the answer for example if there was input 5 the result is 120, but show a big error. How can I do this? Can you please help me? views/facto...
asked by 11.10.2016 / 21:26
1
answer

materialize + pug (jade) does not work?

I have this in my layout doctype html html head title= title script(src="/javascripts/jquery-1.9.1.js") link(rel='stylesheet', type='text/css', href='/stylesheets/materialize.min.css') script(src="/javascripts/materialize.min...
asked by 24.02.2017 / 05:07