jquery-view-engine
jquery-view-engine copied to clipboard
How to use FontAwesome icons in templates, when it shows html instead of icon
Idea is great, but I miss some wiki.
How to use icons in this engine?
Here is model:
{
name: "Email",
link: "#email",
icon: "<i class=`fas fa-envelope`></i>",
},
Here is template
<span class="bind-icon"></span>
Here is html output (should be icon)
<i class="fas fa-envelope"></i>
This seemed to work, but I am not sure if thats correct solution: .view(div, {rawMarkup: true} );