Top "Pug" questions

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

ExpressJS 3.0 How to pass res.locals to a jade view?

I want to display a flash message after a user fails to sign in but I just can't get the …

node.js session express response pug
Multilanguage express app

I wonder what would be the best way to implement multiple versions / languages of the same content in the same …

node.js express pug
Angularjs: How to include empty option in select when using ng-option

How can I add empty option in the beginning when I use ng-option to provide predefined list of options which …

javascript select angularjs option pug
trying to format a date on jade template

I have an index.js: exports.index = function(req, res){ db.courses.find(function(err, currentCourses) { res.render('index', { currentCourses: …

node.js pug
Is there a way to include html file or snippet directly in jade?

I have a set of html files, mostly static, I would like to move to my node.js/express/jade …

node.js pug
Accessing Express.js req or session from Jade template

I am wondering if there is an easy way to access Express.js' req or session variables from within a …

node.js express pug
Jade select field populating data

Is there any better ways to populate Jade based select fields, I am currently using this example. Is there any …

javascript node.js pug
Passing objects to client in node + express + jade?

I have a pretty heavyweight query on the server that results in a new page render, and I'd like to …

json node.js express pug
Is it considered bad practice to use HTML in Jade?

Jade looks like a cool templating engine and I think I'll be using it for my next project. However, some …

node.js express pug template-engine
Using Jade Templates (jade-lang.com) client-side

I'd like to use Jade templates client-side. Preferably generated using the Rails 3.1 asset pipeline. I can't really figure out how …

javascript ruby-on-rails node.js template-engine pug