mozilla / nunjucks

A powerful templating engine with inheritance, asynchronous control, and more (jinja2 inspired)

Home Page:https://mozilla.github.io/nunjucks/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Group of css classes not rendered as expected

bsastregx opened this issue · 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