I am trying to display the code snippet for a button with an icon, but the snippet doesn't display properly.
These are the lines in my .jade file:
if button.hasIcon
a.snippet(class="#{button.className}" href='#')
i(class="fas #{button.iconName}")
=button.buttonName
And this is how it is displayed:
<a href="#" class="btn btn-secondary btn-small">Filter</a>
It should be like this though:
<a href="#" class="btn btn-secondary btn-small">
<i class="fas fa-filter">
::before
</i>
"Filter"
</a>
Can anyone help please?
I am trying to display the code snippet for a button with an icon, but the snippet doesn't display properly.
These are the lines in my .jade file:
And this is how it is displayed:
It should be like this though:
Can anyone help please?