Questions tagged [pugjs]

pugjs is the Github organization which creates the "Pug" (previously known as "Jade") Node.js templating library.

Organization link: https://github.com/pugjs

79 questions
0
votes
1 answer

How to display value of grouped objects at jade template in javascript node.js

Based on this How to split array dynamically based on single value in JavaScript Node.js i created object with Arrays, and i can display name of each array by this: - each item in Object.keys(groupedData) li= item result is: * Fruit *…
DiPix
  • 5,755
  • 15
  • 61
  • 108
0
votes
3 answers

Jade/PUG JSON interpolation

First of all let me tell you that I'm not using Express but only Pug (formerly know as Jade). I read a JSON object from an external file. Inside the object, one of the keys has a string value that looks like this: This is #[strong cool] Jade outputs…
-1
votes
2 answers

Pug.js Sails.js Javascript for loop issue

I am trying to loop through an object to get a value based on the key in the object. I am trying to use a variable to work through the loop/object. If I set the value ahead of time I get the data. If I try to set the value with a variable defined…
Mike Nelson
  • 167
  • 2
  • 12
-2
votes
1 answer

Why can't I call any page created in node express?

I'm using the ExpressJS web framework for NodeJS. I don't know why to have 404 error messages when creating a new page and call it. My directory structure: | my-application | src | routes | index.js | single.js …
1 2 3 4 5
6