jsonform
Version:
Client-side JavaScript library that generates HTML forms from structured data models expressed using a JSON schema, possibly completed by a form layout description.
19 lines (18 loc) • 393 B
JavaScript
var tests = [
{
name: 'template',
jsonform: {
schema: {
textfield: {
type: 'string'
}
},
form: [
{
key: 'textfield',
template: 'I can haz template miam-miam<br/><input class="input-xlarge xlarge" type="text" name="<%= node.name %>" value="<%= escape(value) %>" id="<%= id %>" />'
}
]
}
}
];