checkboxes.coffee | |
|---|---|
| checkboxes checkboxes creates a list of checkboxes from an array each item in the array should have a display and value attribute usage: template = -> checkboxes "checkbox_group", [{display: 'Option 1', value: '1'}, {display: 'Option 2', value: '2'}] renders
| module.exports = (name, list, attributes) ->
for item in list
checkbox name, item.display, item.value, attributes
|