lily:流星的微型客户端和服务器端验证包

时间:2024-07-03 09:57:34
【文件属性】:

文件名称:lily:流星的微型客户端和服务器端验证包

文件大小:17KB

文件格式:ZIP

更新时间:2024-07-03 09:57:34

JavaScript

Lily:一个小小的流星客户端和服务器端验证助手 Lily 提供了一种简单的方法来为您想要的一切定义验证模型,让您专注于您的实际业务。 安装 meteor add yuukan:lily 概述 // Your collection Places = new Mongo . collection ( 'places' ) ; // If you want to use it on a form, client side, it's simple too var myForm = { _name : 'registration_form' } ; Lily . thereIs ( myForm , /*...*/ ) ; // Registering your model Lily . thereIs ( Places , { 'name' : { required : true ,


【文件预览】:
lily-master
----.gitignore(8B)
----package.js(705B)
----LICENSE(18KB)
----README.md(5KB)
----versions.json(1015B)
----lib()
--------middleware.js(774B)
--------validators.js(1KB)
--------lily.js(9KB)
--------templates.html(263B)
----test()
--------extend-tests.js(701B)
--------validators-tests.js(2KB)
--------lily-tests.js(3KB)
--------nested-tests.js(2KB)

网友评论