form-helpers
v1.0.5
Published
A collection of Handlebars form helpers
Downloads
3
Readme
Form Helpers
A collection of Handlebars form helpers.
This:
{{input name="name" label="Name:"}}
Becomes:
This:
{{radio name="gender" value="M" label="Male"}}
{{radio name="gender" value="F" label="Female"}}
Becomes:
This:
{{checkbox name="fruits" value="apple" label="Apple"}}
{{checkbox name="fruits" value="orange" label="Orange"}}
{{checkbox name="fruits" value="strawberry" label="Strawberry"}}
Becomes:
This:
{{#select name="hobby.name" label="Hobby:"}}
<option value="">-- choose --</option>
<option value="games">Games</option>
<option value="soccer">Soccer</option>
<option value="music">Music</option>
{{/select}}
Becomes:
This:
{{textarea name="bio" label="Bio:" rows="2" style="resize:none"}}
Becomes: