Nitin Agarwal
Nitin Agarwal

Reputation: 573

How to Generate this HTML in Jade

How can I generate this HTML using Jade

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

I tried

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

But it puts the <i> after "Configure for Website" text.

Upvotes: 0

Views: 719

Answers (1)

Pickels
Pickels

Reputation: 34632

You can either do:

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

Or if you are feeling fancy:

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

Upvotes: 3

Related Questions