我有一个简单的模板与URL参数,但它不工作
doctype html
html
head
block head
meta(charset="utf-8")
meta(name="viewport", content="width=device-width")
meta(http-equiv="X-UA-Compatible", content="IE=edge")
meta(name="x-apple-disable-message-reformatting")
link(rel="stylesheet", href="style.css", data-inline)
body
p Приветствую #{name},
p #{url} // it is work
p
a(href='/' + #{url}) Google // it not working

我试过不同的变种
"pug":"^3.0.0“
发布于 2021-11-10 19:00:26
简单的答案是:
a(href=`${url}`) text any urlhttps://stackoverflow.com/questions/69918759
复制相似问题