mithril-form-parser
v1.0.6
Published
A parser for mithril forms
Downloads
3
Readme
Mithril Form Parser
A parser for mithril forms using the virtual dom
var formParser = require('mithril-form-parser')
module.exports = {
view: function(vnode) {
return m('form', {
onsubmit: function(evt) {
evt.preventDefault()
vnode.attrs.onsubmit(evt, formParser(vnode))
}
})
}
}