mozilla/nunjucks

Group of css classes not rendered as expected

bsastregx opened this issue · 0 comments

Hi!

I am setting a group of two css classes like this :

{% set listClasses = "main-menu__links--cl unstyled" %}

Then, I add this classes to a ul :

<ul class={{listClasses}} >

Expected result on the browser:

<ul class="main-menu__links--cl unstyled">

Obtained result:

<ul class="main-menu__links--cl" unstyled="">

As you can see, "unstyled" is being printed outside of the class attribute. More than that, is being printed as a new attirbute.

image