问题I want to put Jade variable in tag attribute but it isn't evaluated. a(href="/logout/#{user.name}") 回答1:You could use: a(href='/logout/'+user.name) 来源:https://stackoverflow.com/questions/5081534/put-jade-local-variable-in-tag-attribute 标签 node.js pug