Sunday, 4 June 2017

How to read array in jade file node.js

I have this array set from my route to view

[ 'dgdgd',
  'gdgdfg',
  'gdgd',
  'dgdg',
  'gdfdg',
  'gdg']

In my jade file I wrote

select#e1.col-md-12.getDb(name='dbname')
    option
    for myset, i in data
        option #{myset}



via sunshine

No comments:

Post a Comment