Most voted "jade" questions
20 questions
Sort by count of
-
4
votes1
answer40
viewsIn Jade, how can I suppress the error if a variable does not exist?
I’m trying to create a form to create a user, but I use the same form to edit. When I try to create a new user the app shows me an error because in the form fields it tries to get information from a…
-
4
votes1
answer146
views -
3
votes1
answer220
viewsPass HTML element in Jade variable
Below I have a call from a include to an "Alert", I wonder if it is possible within the message variable not to pass pure HTML () and yes a call #[Strong Well done! ] which is most common within the…
-
3
votes1
answer146
viewsHow to format money with jade in Node.js?
I have to present monetary values in my view, but it is appearing without formatting. For example, 5.4237 should be presented as R$ 5,42, but I don’t know how to format this value using the Jade…
-
2
votes1
answer202
viewsJade template engine name/nomenclature
Hello, a few days ago I’m getting a message when I will install the Jade Template Engine via npm , the message says: npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the…
-
1
votes1
answer1876
viewsLine break Json
I’m trying to develop a system with Node.js and I’m trying to list the database data in my table, but the data stay together this way: I still don’t know much about Json, is it because he’s this…
-
1
votes1
answer43
viewsUse of filter in ng-repeat in jade templates
Guys I think I’m doing something wrong but I’m not finding the error in the code. ul(class='list-group') li(class="list-group-item", ng-repeat="v in votadas | filter: '-votos'") h4 Música: {{…
-
1
votes2
answers63
viewsread arrays in jade
I need to read an array on my jade page. In my controller I am passing as follows: res.render('graphics/index', {namesClient:JSON.stringify(namesClient)} In jade I’m reading as follows: var names=…
-
1
votes1
answer129
viewsChange the content of a DIV from another site
Good afternoon, I’m having a hard time finding a way to get two Ivs to communicate and I need help knowing what I can is using to make this communication For example: An Object will send a site2…
-
1
votes0
answers189
viewsCommunication Failure while Joining agent Platform: No ICP active - JADE
Hello could help me with this, I’m starting now in JADE, and I’m trying to start two agents, however gives the following exception: Communication failure while joining agent platform: No ICP active…
-
1
votes1
answer44
viewsMerge controllers
I have this controller that sends a normal Error or Success notification $scope.add = function () { if(!$scope.name || !$scope.url ){ $scope.success = null; return $scope.error = 'Preencha todos os…
-
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
answer122
viewsHow to pass ng-repeat {{$index}} as a mixin parameter? (Angularjs)
I am working with Aquivos . jade and using ng-repeat from Angularjs 1.5.8. I cannot pass a {{$index}} as a parameter in a mixin. This parameter is a string that defines an ng-model within the mixin.…
-
0
votes1
answer34
viewsRead jade array value
I have the following array created in my controller: var data = []; for (var i = 0; i < array.length; i++) { nfejs(array[i], function(err, nfe) { var itemNfe = {}; itemNfe.name =…
-
0
votes0
answers52
viewsSelect multiple files
Need to select on average 1500 up to 3000 files, however, only 1200 are being selected with the input below. Does anyone have any idea why? input class="form-control", type="file",…
-
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
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
answers48
viewsHow to search for generic text/phrases of a certain language?
I have a hundred ". jade" files that contain several static phrases in Spanish. I want to map and exchange these phrases for dynamic content based only on the type of language (since I don’t have a…
-
0
votes0
answers142
viewsSyntaxerror: Unexpected token (244:78) - Nodejs, Express, jade, mysql
I am developing a program and out of nowhere in creating a simple page appeared error below: The program is working everything but this page that appears this error: I’ve gone over all the lines and…
-
0
votes0
answers80
viewsHow to run JADE (Java Agent Development Framework) on linux?
How to Rotate JADE (Java Agent Development Framework), is a framework for SMA, in the latest version of Lubuntu ? I am using Lubuntu 32bits - 17.10.1. I’m having a problem running it on Ubuntu (the…