Answer the question
In order to leave comments, you need to log in
How to properly declare an array in jade?
Hello!
I'm trying to declare an array in jade with line breaks, for readability, but the console swears at a dash if I try to do this:
-
var infoPerson = [
{
'label': 'Полное ФИО',
'inputValue': '...'
},
{
'label': 'Год рождения',
'inputValue': '...'
},
{
'label': 'Место жительства',
'inputValue': '...'
},
{
'label': 'Скайп',
'inputValue': '...'
},
{
'label': 'Почта',
'inputValue': '...'
}
];
Answer the question
In order to leave comments, you need to log in
It is in jade that needs to be done, and not pug?
Then, most likely, it will not work, because support for multi-line array writing appeared there relatively recently (about 2 years ago), after renaming like.
Why do you need jade?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question