Top "Pug" questions

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

Node JS Pass a Variable to Jade / Pug

For some reason I can't pass a variable to the pug template with Node JS. app.get("/", function (req, res) { …

node.js pug
Do I have to use   for space in Jade?

I am using Jade and everything is cool except that Jade "eats" my spaces. For example, in HTML: <b&…

pug
How to make Jade stop HTML encoding element attributes, and produce a literal string value?

UPDATE Jade v0.24.0 fixes this with a != syntax for attributes. option(value!='<%= id %>') I'm trying to …

templates underscore.js pug html-encode string-literals
Concatenating a variable + string in Jade file

I am passing in a session variable from my mongodb session store in an Express for Node.js web app …

html node.js express pug
Rendering HTML in variable using Jade

I have some text stored in a variable which contains some HTML. For example, the <b>cat</…

node.js pug
Jade (node.js) - more than one class on an element?

in jade one can write: div.container and it compiles into: <div class="container"></div> But …

pug
Error: Cannot find module 'jade~'

Im new to node js. I used Compound Js to create a crud operation. The app was working fine till …

javascript node.js pug railway.js compoundjs
how to upload and read a file with nodejs / express

there are all kinds of posts about this, but I'm still not getting it. I want to upload a *.csv …

node.js file-upload express pug
Use a variable in a Jade include

I'm working with Jade and Express and I would like to use a variable in my include statement. For example: …

node.js express pug
Jade Inline Conditional

I'm trying to make everything apart from the first element in an array have a CSS class using the Jade …

node.js pug