pug variable not evaluated on a href tag
问题 In my Express JS web app, a login route renders some variables to the login pug view. In login.js router.get('/login', function(req, res, next) { var locations = ["Location 1", "Location 2"]; var count = 0; var title = 'Login'; console.log("req.originalUrl=" + req.originalUrl); res.render('login', { title: title, // Give a title to our page jsonData: locations, // Pass data to the View count: locations.length, originalUrl: req.originalUrl }); }); In login.pug extends layout block content div