Questions tagged as 'jade'

1
answer

How to show the result of a javascript operation to jade

The goal is to obtain the data of an operation javascript and show the result on the page, the code is as follows: doctype html html head title Mi Pagina script(type="text/javascript"). var resultado = localStorage.getItem("val...
asked by 06.07.2016 / 19:00
1
answer

how can I compile all the jade files in a folder at the same time in windows?

I have Windows 7 and I want to run the npm command and compile all the jade files that are in the lib library, this is the command I want to use: jade --watch --pretty lib/*.jade --out . and it generates the following error: Error: ENOENT...
asked by 25.05.2018 / 19:38
1
answer

Synchronize attributes, angular component

I am using an "external" bower component (although I can modify it if necessary) to upload files to a server. This component when the upload completes notifies a method of my controller and establishes in the model an upload identifier. The issu...
asked by 13.03.2018 / 10:57
0
answers

Is it possible to pass parameters to a controller using the angularjs directive?

I would like to pass a jade parameter to the angle controller, but the view is loaded by a directive and I have the doubt that it is possible to pass some arguments. The jade is loaded in the following way ... mixin mi-cuenta(miCuenta)...
asked by 06.09.2017 / 18:49
0
answers

convert code from ejs to jade

I have the following code made in ejs <div class="container"> <h1>Students</h1> <ul class="list-group"> <% students.forEach( function( student ) { %> <li class="list...
asked by 28.02.2017 / 19:34
2
answers

When using jade extends, is it ajax or does it pretend to be ajax?

For example, I render this view: html head body form(action="/buscar" method="POST") label(for="nombre") Nombre input(type="text" name="nombre") input(type="submit") block contenido h1 usuarios Then in another ro...
asked by 26.07.2016 / 05:49
1
answer

Insert JavaScript variable to a Form action. with pug / jade

I need to insert the value of a javascript variable at action of a form The Script is this: var url = window.location; var urlcomplete = url.href; var urlparts = urlcomplete.split("/"); var years = urlparts[urlparts.l...
asked by 02.02.2018 / 17:57
1
answer

Menu nav single page

I have this menu in nodejs (jade / pug) extends ../templates/default block content nav#colorNav ul li.green a.icon-home(href='#') ul li a(href='#') Generar li...
asked by 06.06.2017 / 19:21
1
answer

Jade + Javascript does not work

I have a template .jade extends layoutIn block content input(type="text", id="captureInput", style="width:100%") pre(id="resultado", style="overflow-y: scroll; height:150px") and the javascript is: var texto = document.get...
asked by 19.11.2016 / 16:06
1
answer

Error creating a variable outside the Script. with jade / pug

I have a variable of this type: - var route = "/app/imagenes/"+location.href.split("/")[location.href.split("/").length - 2]; which generates the following error:    Can not read property 'href' of undefined but when I put it in a...
asked by 05.02.2018 / 15:50