Jade模板:如何在UL中创build一个链接超链接的超链接
我正在尝试创build一个超链接列表。 每个列表项都包含一个主题,并在一行中包含对该主题的简单描述。 我想包含一个超链接的主题,但不包括描述。 我所做的是如下。
ul#subjects li a(href="#") Subject: Here is the description of the subject
链接工作正常,但它涵盖了整个文本行。 如何closures超链接,使其成为如下HTML中的东西? 请注意,“:”不在超链接中。
<ul id='subjects'> <li><a href='#'>Subject</a>: Here is is the description of the subject </ul>
谢谢。 :)
使用|
在Jade中显示HTML文本
例如
ul#subjects li a(href="#") Subject | : Here is the description of the subject