Top "Pug" questions

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

Pass variables to base layout from extending pug/jade template

I would like to set a class on the body tag by declaring a variable in a template that extends …

javascript node.js pug
What's the best way (or package) to build a static site using Node.js?

In Short What's the best way to set up a static blog with Markdown and RSS support, just like this …

javascript node.js pug docpad
How do you set up Jade file watcher in Webstorm?

I set up a Jade file watcher in the following way in WebStorm. However it does not produces any HTML …

node.js pug webstorm file-watcher
How do I render partials with jade without express.js?

Only info I found was this: http://forrst.com/posts/Node_js_Jade_Import_Jade_File-CZW I replicated the suggested …

node.js templating pug
Creating Dynamic Classes in Jade/Pug

I'm trying to add a dynamic class to a jade template. Like so: - var obj = {a: 1, b: 2, c: 3}; - …

pug interpolation dynamic-class-creation
Passing an object with circular references from server to client-side Javascript while retaining circularity

I'm trying to pass an object with circular references from node.js server to client-side javascript. Server (node.js): var …

javascript node.js express pug circular-reference
Jade template how to add text after tag on the same level

I am try to get this to work in jade template: html: <li><i class="icon-comment">&…

node.js pug
Hogan JS IF statements

I don't really like the jade syntax and was wondering if I could do this simple comparison using hoganJS instead? …

javascript html dom pug hogan.js
Why would I need template engines like Jade or EJS on the backend?

I am familiar with Angularjs(1.x) and use templates in directives. Currently I am learning nodejs and as a part …

node.js pug template-engine ejs
HAML or Jade template syntax available for Python?

Are there any template engines for Python with a syntax similar to Jade or HAML?

python haml pug