开发者

Put Jade local variable in tag attribute

开发者 https://www.devze.com 2023-02-12 09:55 出处:网络
I want to put Jade variable in tag attribute but it isn\'t evaluated. a(href=\"/logou开发者_开发百科t/#{user.name}\")You could use:

I want to put Jade variable in tag attribute but it isn't evaluated.

a(href="/logou开发者_开发百科t/#{user.name}")


You could use:

a(href='/logout/'+user.name)
0

精彩评论

暂无评论...
验证码 换一张
取 消