Answer the question
In order to leave comments, you need to log in
How to create a list with links to Jade?
I started to study jade, I try to create a list with a link by analogy:
ul
each val, index in {1:'one',2:'two',3:'three'}
li= index + ': ' + val
ul
each val, link in {'path.jade':'main','path.jade':'page_1','path.jade':'page_2'}
li= link + ': ' + val
ul
Answer the question
In order to leave comments, you need to log in
I am writing from my phone, there may be errors.
For example:
- var links = [{name:"Главная", url:""}, {name:"Производство, url: "build" {name:"Контакты", url:"contact"}]
ul
each link in links
li
a(href="#{link.url}") #{link.name}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question