0

如何使用 Jade 生成此 HTML

<a class="btn btn-primary btn-large" data-toggle="modal" href="#websiteModal">
<i class=" icon-map-marker icon-white"></i>
Configure for Website</a>

我试过

a.btn.btn-primary.btn-large(data-toggle="modal",href="#websiteModal") Configure for Website
                i.icon-map-marker.icon-white

但它会<i>在“为网站配置”文本之后放置。

4

1 回答 1

3

你可以这样做:

a.btn.btn-primary.btn-large(data-toggle="modal",href="#websiteModal")
  i.icon-map-marker.icon-white
  | Configure for Website

或者,如果你觉得很花哨:

a.btn.btn-primary.btn-large(data-toggle="modal",href="#websiteModal")='Configure for Website'
  i.icon-map-marker.icon-white
于 2012-06-14T19:11:16.483 回答