jsonml-forms

A set of functions to generate form elements

npm install jsonml-forms
85 downloads in the last month

jsonml-forms

A set of functions to generate form elements

Example

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"
        })
    ]]
]])

Installation

npm install jsonml-forms

Contributors

  • Raynos

MIT Licenced

npm loves you