why there is no nesting? I can not understand what the problem is

enter image description here enter image description here

- var currentProject = [['composition-project','Состав проекта'], ['room', 'Помещения'],['terms', 'Скроки']]; UL.sidebar&attributes(attributes) LI(class= currentProject[0][0]) #{currentProject[0][1]} block - for (var i = 0; i < currentProject.length; i++) { LI(class= currentProject[i][0]) #{currentProject[i][1]} - } 

    1 answer 1

    for slide on tab

     - var currentProject = [['composition-project','Состав проекта'], ['room', 'Помещения'],['terms', 'Скроки']]; UL.sidebar&attributes(attributes) block - for (var i = 0; i < currentProject.length; i++) { LI(class= currentProject[i][0]) #{currentProject[i][1]} - } 

    Codepen example

    Option without brackets (note the levels, observe the indents):

     - var currentProject = [['composition-project','Состав проекта'], ['room', 'Помещения'],['terms', 'Скроки']]; ul.sidebar&attributes(attributes) - for (var i = 0; i < currentProject.length; i++) li(class= currentProject[i][0]) #{currentProject[i][1]} 

    There are no closing tags in Jade. Instead, Jade uses tabs to define tag nesting.

    Jade documentation. Ru

    Documentation for pug. Eng

    • biased, same thing. I updated the pictures, look - HelpaMnePlz
    • a dash (hyphen) who you left in place? ) Compare your screen and my answer) - HamSter
    • It works! Thank. But the IDE gives an error and points to the bottom bracket. Writes "missing}" Very Strange - HelpaMnePlz
    • @HelpaMnePlz, because it would be better without brackets at all. Now add option. - HamSter pm
    • @HelpaMnePlz, and generally read the office. documentation for jade, and even better for pug - HamSter