Top "Pug" questions

Pug (formerly known as Jade) is a robust, elegant and feature-rich template engine for Node.

jade template engine, how to use layout.jade?

I have a website in node.js; to create a page, say mypage I noticed I need to create both …

node.js express pug
Jade conditional (if/else) to add class to div inline

Is there a way to do this inline in a jade template? if(typeof fromEdit != 'undefined') div#demo.collapse.in …

javascript node.js express pug
What's the use of Jade or Handlebars when writing AngularJs apps

I am new(ish) to the whole javascript full stack applications, and completely new to Angular, so I was hoping …

node.js mongodb angularjs handlebars.js pug
Comments in Jade/pug

I tried making comments in Jade/pug, but the comments render as text in the HTML. This is my code: …

node.js pug
how do you link css to a jade file?

I am currently trying to link normalize.css but its not working (using socket an express) html head title= "Real …

css node.js express pug
Jade and NodeJs, any good tutorials?

I have started working with NodeJs. First, I was just using it for providing simple REST api which has access …

node.js pug
socket.io - can't get it to work, having 404's on some kind of polling call

I'm trying to get a server set up with socket.io, with bad results. I am mostly following this guide, …

node.js express socket.io pug
Jade/Pug if else condition usage

I'm sending a date to a .jade file from my .js file using Node.js. When the #{date} field is …

node.js pug
Node.js + Express without using Jade

Is it possible to use express without any template engine?

node.js express pug
Foreach loop in jade (node.js template engine)

Ok, I am getting an associative array from node server and trying to render it in Jade. I obviously need …

node.js foreach associative-array pug