I can't seem to figure out how to pass my variable into the class, ID, or data attributes on my custom element.
<ub-item class="item cssV2 { opts.status }" id="{ opts.id }" data-link="{ opts.url }">
opts.status, opts.id, and opts.url all work if I pass them in an element like <p>
, but how do I pass the variable into the attributes? The HTML output includes them as strings.