forms/templates/form.js

/**
 * @module flitter-forms/templates/form
 */

/**
 * Returns the contents of a new validator definition schema with the specified object name.
 * 
 * @param {string} name - name of the new validator definition schema object
 * @returns {string}
 */
module.exports = exports =  (name) => {
    return `// ${name} Form

const ${name} = {
    // field: [ 'required' ],
}

module.exports = exports = ${name}
`
}