Reflect HTML forms from <a href="http://github.com/flatiron/resourceful">Resourceful</a> resources.
Reflect HTML forms from Resourceful resources.
npm install formful
var resourceful = require'resourceful'Creature = resourcefuldefine'creature';Creatureproperty'type' String default: "dragon" ;Creatureproperty'email' String format: "email" ;Creatureproperty'life' Number default: 10 min: 0 max: 20 ;
var formful = require'formful';formfulcreateServerCreaturelisten8000console.log' > formful server started on port 8000';;
Here is a code example of using formful as a stand-alone server: https://github.com/flatiron/formful/blob/master/examples/server.js
Here is an example of trying to create a new creature without a valid email. Bad creature!
Formful persists to data-providers using Resourceful. You can find more information about Resourceful here.
As of the formful
v0.1.0 release, form customization is not so awesome. This will be improved soon.
The form View is created by the viewful library and is a
Currently, all forms and form components are stored as plain html files. Formful currently uses no templating engine. All rendering and data-binding is currently handled through a Presenter for each view. This is not ideal, and will be changing soon.
revalidatorproperty type support ( numeric, boolean, array, object )