0

in jade, I use:

each item in items
  li
    a(href='http://www.#{item.href}/') #{item.name}

the html output is ok, but in only one big line. how I can get a newline between every list element ? like

<li><a ...</a></li>
<li><a ...</a></li>
<li><a ...</a></li>
JuanPablo
  • 23,792
  • 39
  • 118
  • 164
  • more info in [ExpressJS: how to output pretty html](http://stackoverflow.com/questions/5276892/expressjs-how-to-output-pretty-html) – JuanPablo Apr 03 '13 at 13:32

1 Answers1

1

You need to enable jade's pretty mode. Pass {pretty: true} in the options

Ven
  • 19,015
  • 2
  • 41
  • 61