powmedia/backbone-forms — pull request #45 by scttnlsn (2012-03-16 23:36:28+00:00)
Title: Allow field templates to be specified in schema

This pull request allows field templates to be specified in a form schema.

```
Backbone.Form.helpers.setTemplates({
form: '...',
fieldset: '...',
field: '...',
custom: '...'
}, ...);
```

```
schema: {
foo: { type: 'Text', template: 'custom' }
}
```

Defaults to the `field` template.