https://discord.umbraco.com logo
#hacktoberfest
Title
# hacktoberfest
w

warrenbuckley

10/13/2021, 1:42 PM
I need some mustache advice @User or @User How would I add extra CSS classes if current item in the loop had a simple bool prop to say it was active
Copy code
<umb-lang-switcher>
    <ul class="lang-switcher">
        {{#languages}}
            <li class="lang-switcher__item">
                <a href="{{url}}" lang="{{cultureCode}}" hreflang="{{cultureCode}}" class="lang-switcher__link"><{{name}}</a>
            </li>
        {{/languages}}        
    </ul>
</umb-lang-switcher>