Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我喜欢在快递项目中使用翡翠模板。有时我会遇到这些问题。例如,
li: b PHONE li +7 (914) 3164890
我可以将这些代码放在一行中吗?玉模板可以吗?如果不可能,我必须为这种类型的工作使用哪个 html 预处理器?
对于这类问题,您始终可以选择使用标准 HTML 语法。Pug 在其模板文件中接受 HTML 和 Pug 语法,因此<li>...</li><li>...</li>也应该是有效的 Pug 代码。
<li>...</li><li>...</li>