Top "Pug" questions

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

Jade template, how to pass concrete object to pages?

I have a jade template for my node.js project. I would like to send an object to the jade …

node.js pug
Jade - Loading templates from different directories

I'm trying to work on Peepcode's Node.js Full Stack videos and it seems they're using an older version of …

templates node.js express pug
Prevent browser from remembering credentials (Password)

Is it possible after processing any login Form to prevent the browser from offering the option to remember the password? …

javascript angularjs passwords pug privacy
What is a concise way to create inline elements in Jade

I like to put all my inline elements in a single line. <ul> <li><a&…

node.js pug
Jade checkbox checked attribute unchecked based on conditional (if)

How do I get jade to render the checked attribute of a checkbox based on a conditional? Like these two …

javascript node.js express pug
Passing variables through Jade templates

It's possible in Jade to pass variables from one template to another?. I want to do something like this: tmp1.…

pug
iterate over an array of objects in jade/pugjs

I have the following json object: var partners =[{ "name":"partnerx", "image": "imagex" }, { "name": "partnery", "image": "imagey" }] I want to put …

node.js pug keystonejs jade4j
how to pass variables between jade templates

I am using a template as a base, and want it to be aware of some variables set in the …

templates variables pug
Put Jade local variable in tag attribute

I want to put Jade variable in tag attribute but it isn't evaluated. a(href="/logout/#{user.name}")

node.js pug
variable in class name jade

I can't set a variable name in a class in jade: .flag_#{ session.locale } #{ session.locale } I have: <div …

node.js express pug