diff --git a/LICENSE b/LICENSE index b7f9d50..485b34a 100644 --- a/LICENSE +++ b/LICENSE @@ -17,3 +17,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + diff --git a/README.md b/README.md index 97b7825..eefac78 100644 --- a/README.md +++ b/README.md @@ -294,3 +294,4 @@ valid or with an error message if the field is invalid. A function which accepts a name and field as arguments and returns a string containing a HTML representation of the field. + diff --git a/example/complex.js b/example/complex.js index e083592..f626dab 100644 --- a/example/complex.js +++ b/example/complex.js @@ -82,3 +82,4 @@ http.createServer(function (req, res) { }).listen(8080); util.puts('Server running at http://127.0.0.1:8080/'); + diff --git a/example/json-template.js b/example/json-template.js index aeb7253..60e3204 100644 --- a/example/json-template.js +++ b/example/json-template.js @@ -529,4 +529,5 @@ return {Template: Template, HtmlEscape: HtmlEscape}; }(); // commonjs -for (var key in jsontemplate) exports[key] = jsontemplate[key]; \ No newline at end of file +for (var key in jsontemplate) exports[key] = jsontemplate[key]; + diff --git a/example/layout.jade b/example/layout.jade index 7080b9b..958e4e1 100644 --- a/example/layout.jade +++ b/example/layout.jade @@ -3,3 +3,4 @@ html head title Test forms for express.js body!= body + diff --git a/example/page.jade b/example/page.jade index b0f19bc..223122e 100644 --- a/example/page.jade +++ b/example/page.jade @@ -4,3 +4,4 @@ h1= title form(method='post') != form input(type='submit') + diff --git a/example/page.jsont b/example/page.jsont index 43fc1f9..16aa802 100644 --- a/example/page.jsont +++ b/example/page.jsont @@ -56,3 +56,4 @@ + diff --git a/example/simple-express.js b/example/simple-express.js index ead7d8f..122f839 100644 --- a/example/simple-express.js +++ b/example/simple-express.js @@ -69,3 +69,4 @@ if (!module.parent) { app.listen(8080); sys.puts('Express server running at http://127.0.0.1:8080/'); } + diff --git a/example/simple.js b/example/simple.js index 6f7937e..dad83a6 100644 --- a/example/simple.js +++ b/example/simple.js @@ -46,3 +46,4 @@ http.createServer(function (req, res) { }).listen(8080); util.puts('Server running at http://127.0.0.1:8080/'); + diff --git a/index.js b/index.js index 535c6b9..b7ab242 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,4 @@ // This file is just added for convenience so this repository can be // directly checked out into a project's deps folder module.exports = require('./lib/forms'); + diff --git a/lib/fields.js b/lib/fields.js index e5ca32b..0106512 100644 --- a/lib/fields.js +++ b/lib/fields.js @@ -141,3 +141,4 @@ exports.array = function (opt) { }; return f; }; + diff --git a/lib/forms.js b/lib/forms.js index 840e64e..7cb1cc2 100644 --- a/lib/forms.js +++ b/lib/forms.js @@ -90,3 +90,4 @@ exports.create = function (fields) { }; return f; }; + diff --git a/lib/render.js b/lib/render.js index ea9e185..35822be 100644 --- a/lib/render.js +++ b/lib/render.js @@ -32,3 +32,4 @@ exports.table = function (name, field) { '' ].join(''); }; + diff --git a/package.json b/package.json index b776e4d..6a698d5 100644 --- a/package.json +++ b/package.json @@ -27,3 +27,4 @@ "nodeunit": "~0.7.4" } } + diff --git a/test.js b/test.js index a857ab8..410805e 100755 --- a/test.js +++ b/test.js @@ -2,3 +2,4 @@ var reporter = require('nodeunit').reporters.default; reporter.run(['test']); + diff --git a/test/test-fields.js b/test/test-fields.js index e7a5eee..3599cce 100644 --- a/test/test-fields.js +++ b/test/test-fields.js @@ -354,3 +354,4 @@ exports['array toHTML'] = function (test) { ); test.done(); }; + diff --git a/test/test-form.js b/test/test-form.js index bbaf4ca..c7cdb06 100644 --- a/test/test-form.js +++ b/test/test-form.js @@ -359,3 +359,4 @@ exports['div bound error'] = function (test) { }); setTimeout(test.done, 25); }; + diff --git a/test/test-forms.js b/test/test-forms.js index ba831a6..f9b7d1d 100644 --- a/test/test-forms.js +++ b/test/test-forms.js @@ -20,3 +20,4 @@ exports.create = function (test) { ); test.done(); }; + diff --git a/test/test-render.js b/test/test-render.js index b3bd358..9f5aa2e 100644 --- a/test/test-render.js +++ b/test/test-render.js @@ -217,3 +217,4 @@ exports['table bound error'] = function (test) { }); setTimeout(test.done, 25); }; + diff --git a/test/test-validators.js b/test/test-validators.js index 6affc02..fc327c2 100644 --- a/test/test-validators.js +++ b/test/test-validators.js @@ -171,3 +171,4 @@ exports.color = function (test) { })); async.parallel(tests, test.done); }; +