Skip to content
Snippets Groups Projects
Verified Commit 23f8f46e authored by clemo's avatar clemo
Browse files

fix typo

parent b9467dc4
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ player.remove(p1.id);
- form
> vaitation.validator cann be [validator](https://www.npmjs.com/package/validator) string or a boolean function
> vaitation.validator can be [validator](https://www.npmjs.com/package/validator) string or a boolean function
```
let validation = {name:{type:'text',element:'input',validator:'isLength',options:{max:20,min:10},required:true}}
......@@ -47,9 +47,9 @@ let validation = {name:{type:'text',element:'input',convert:(x){return x.toUpper
let sample = Form(validation);
sample.fill(post);
if(sample.isValid()){
pug.renderfile('form.js',sample);
pug.renderfile('form.pug',sample);
}else{
pug.renderfile('success.js',sample);
pug.renderfile('success.pug',sample);
}
//full pug and valitation file will follow soon
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment