jsonml-forms

A set of functions to generate form elements

jsonml-forms

A set of functions to generate form elements

var form = require("jsonml-forms")
var jsonml = require("jsonml-stringify")
 
var page = jsonml(["html", [
    ["head", [
        ["title", "Forms example"]
    ]],
    ["body", [
        form.string.input({
            marker: "name"
        }),
        form.string.password({
            marker: "password"
        })
    ]]
]])

npm install jsonml-forms

  • Raynos