How to use the array into jade?

Want to make a menu. It looks like this
mixin menu-footer(...items)
+b.menu-footer&attributes(attributes)
+e('ul').menu
 each item in items
 +e('li')(class='item-' + item.itemclass)
a.menu-item(href=item.refs)=item.name
+menu-footer({itemclass:'search',refs:'#', name:'Search'})


Interested in how to make an array that would be possible to add something like that
+menu-footer( [ {itemclass:'search', {refs:'#', name:'Search'} ] )
June 14th 19 at 20:34
1 answer
June 14th 19 at 20:36
I'm not sure if I understand the question, but take a look at this example https://codepen.io/perfectpixel/pen/EbmgEL it can help...

or here's How to add a class in jade(in a loop)?

Find more questions by tags CSSHTMLPug