express

What is the layout `yield` method in ejs?

I'm just starting with node.js + express + ejs. I can't find anywhere how to pull in the requested ejs file to the layout file. I know full well that yield is not the right thing here. e.g. layout.ejs <html> <head><title>EJS Layout</title></head> <body> <%= yield %> </body> </html> index.ejs <p>Hi</p> ...

What is the best way to render LESS.js stylesheets in node.js using express?

I have a small node.js app (my first) that I want to have compile it's less.js stylesheets when the server loads. The point I'm starting at is the express example app for jade where it appears it compiles it's SASS templates when the server is created: var pub = __dirname + '/public'; var app = express.createServer( express.compiler...