How do I create a I-tag in haml? Example:
<i class="fa fa-search"></i>
HAML equivalent is
HAML
%i{class:"fa fa-search"}
You can look at http://codepen.io/anon/pen/BNwbEP and see the compiled view
You can also use the . shortcut:
.
%i.fa.fa-search
or the HTML-ish attribute variant
%i(class='fa fa-search')
I prefer the dot syntax.
Copyright © 2021 Jogjafile Inc.
HAML
equivalent isYou can look at http://codepen.io/anon/pen/BNwbEP and see the compiled view