【问题标题】:Simpler, Cleaner Inline Links [JADE Preprocessing]更简单、更清洁的内联链接 [JADE 预处理]
【发布时间】:2012-05-25 23:01:30
【问题描述】:

我想在Jade中写如下简单的html:

<p>Nevertheless, you can read his stuff on his nameless <a href="blog">blog</a> as well as on the <a href="voice">Voice</a> college blog.</p>

一种丑陋、冗长、容易出错的方法是:

p Nevertheless, you can read his stuff on his nameless 
    a(href="blog") blog
    |  as well as on the 
    a(href="voice") Voice
    |  college blog.

有没有更简单/更简单的方法来写这个?谢谢

编辑:请忽略代码高亮颜色,因为它们没有意义。

【问题讨论】:

    标签: html preprocessor pug


    【解决方案1】:

    最快的方法是破玉入降价,看这里:Jade: Links inside a paragraph

    【讨论】:

      猜你喜欢
      • 2021-09-10
      • 1970-01-01
      • 2013-07-01
      • 2015-04-03
      • 1970-01-01
      • 1970-01-01
      • 2011-08-27
      • 2021-02-20
      • 2010-10-14
      相关资源
      最近更新 更多