Is there a way to create an unordered from an array in Javascript? : I want to use pure html and javascript instead of HAML.
Before when I was working with this form project I loop through the array like this

    - @item1 = ['a', 'b', 'c', 'd', 'e', 'f', 'g']
    - item1.each_with_index do |item, i|
       %li.option
          %input.option-input{name: 'options', type: 'radio', value: i, id: 'options-#{i}"}/
          %label.option-label{:for => "options-#{i}"}= item1