Top "Pug" questions

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

Using HTML in Express instead of Jade

How to I get rid of Jade while using Express with Node.JS? I want to just use plain html. …

html node.js express pug
What are the pros and cons of both Jade and EJS for Node.js templating?

Jade versus EJS, what are the pros and cons of each and what purposes are each designed for? Are there …

node.js pug ejs
How to use the style tag with jade templates?

This style code worked for me a few months back. I have updated to the latest Jade NPM package and …

pug
Node.js JSON.stringify() causing " in output. Can't parse with Jquery

I am using Node.js (with Express.js) to pass a JSON data object from the server to the client …

jquery json node.js express pug
What about Line Breaks in Jade?

I'm pretty sure that this is a no-brainer but I didn't find any snippet of sample code. What's the best …

node.js pug
Jade: Links inside a paragraph

I'm trying to author a few paragraphs with Jade, but finding it difficult when there are links inside a paragraph. …

node.js markup pug
Jade - Template Engine: How to check if a variable exists

I'm currently using Jade on a new project. I want to render a page and check if a certain variable …

node.js pug express
Jade: How to include a javascript file

I need to include a javascript file to webpage. I write the following: include /../scripts/jquery.timeago.js but I …

express pug
How to create an html table with Jade iterating an array

I'm starting with node expressjs framework and I came across this problem I can't solve. I'm trying to display a …

node.js express pug
Accessing Express.js local variables in client side JavaScript

Curious if I'm doing this right and if not how you guys would approach this. I have a Jade template …

javascript node.js express pug