I am trying to create a select element using EJS (embedded javascript) in Geddy framework. What I want to do is have something like (just an example):
<select>
<option value="int"> Integer </option>
<option value="float"> Single precision decimal point </option>
</select>
I don't find any examples... I know that for creating a select like
<select>
<option value="X"> X </option>
<option value="Y"> Y </option>
</select>
I have to write
<%- contentTag('select', ['X', 'Y']} %>
But how to obtain what I want?
UPDATE:
I've found the select_tag in the EJS documentation, but it is not recognized... I've also tried a hybrid like
<%- contentTag('select', [{value: NumberTypeEL.NonNegativeInteger, text:'nonnegative integer'}, {value: NumberTypeEL.Integer, text: 'integer'}, {value: NumberTypeEL.Decimal, text: 'decimal'}, {value:NumberTypeEL.Fraction, text:'fraction'}], {class:'span6', name:'numberType'}) %>
but still nothing. Any other ideas?