express
Node.js / Express make variable available in layout on all routes
Once a user has logged in, I开发者_运维技巧 want to display their username in the header, which is currently part of layout.jade. Their details are in req.currentUser but req isn\'t accessible from th[详细]
2023-03-31 13:41 分类:问答Multiple Layout files in node.js express framework
I have setup a project in node with the express framework. I like that it allows me to create a layout with a file called \"layout\" in the views directory. But what if I want to have multiple layout[详细]
2023-03-30 23:54 分类:问答expressjs POST header parameters?
I\'m not posting to the body, and the key/value pairs do not show up anywhere I\'ve looked when doing a curl post from PHP -- where are they?![详细]
2023-03-30 23:04 分类:问答Express view render using HBS strips (consumes?) Handlebars client side templates
Using Express with Don Park\'s HBS as the view engine, with the intention of using the same templating style for both client and server code. However I have run into a bit of a snag.[详细]
2023-03-30 23:00 分类:问答Is it possible to check if HTTPS is being used by an express.js handler?
Is there a way to determine if the request is using HTTPS in node.js with exp开发者_如何学编程ress?I\'m using Heroku with their certs which I\'m assuming are installed at the load balancer and not on[详细]
2023-03-30 18:18 分类:问答How to use connect router without connect http server?
I have a function: function foo(request, response, next) { ... } And I want to use the router from \'connect\' npm library to route the request. However, I could only find in the documentation how[详细]
2023-03-30 02:57 分类:问答Facebook example not working in Connect-auth/Express
I am following the example at facebook C开发者_高级运维onnect-auth exemple. I don\'t understand how to get this example working.[详细]
2023-03-29 19:21 分类:问答Error handling principles for Node.js + Express.js applications?
It seems like error reporting/handling is done differently in 开发者_如何学GoNode.js+Express.js applications compared to other frameworks. Am I correct in understanding that it works as follows?[详细]
2023-03-29 17:23 分类:问答Node.js/Express Routing to a static file URL
I don\'t have a problem as such as I have a work-around.However the process of understanding and developing the work-around has highlighted what seems to me a fundamental gap in my knowledge (as a sel[详细]
2023-03-29 11:16 分类:问答Does anyone know the performance or pro/con of journey vs express?
Curious about using either framework 开发者_Python百科for a REST APIWell journey hasn\'t been updated for over 170 days. I\'ve never heard of it before.[详细]
2023-03-29 03:37 分类:问答