Skip to content

@wycats /huh? forked from jonathan/huh?

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
<select id="item-kind" name="item[kind]" class="kind">
{{itemOptions this}}
</select>
helpers =
formItemOptions: (item) ->
_.reduce(
item.itemKinds
(out, itemKind) ->
out + '<option value="' + itemKind.value + '">' + itemKind.name + '</option>'
'<option value=""></option>'
)
item =
itemKinds:
[value: "one", name: "One"]
[value: "two", name: "Two"]
expected:
<option value=""></option><option value="one">One</option><option value="two">Two</option>
actual:
"
<option value=""></option><option value="text">Text Field</option><option value="textarea">Text Area</option><option value="range">Range</option>
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.