Skip to content
Browse files

Update README.md

  • Loading branch information...
1 parent cfc9087 commit 4fb84d1e6a7875bf30121e4fe60b13381b298d1b @badsyntax committed Jun 7, 2013
Showing with 7 additions and 5 deletions.
  1. +7 −5 README.md
View
12 README.md
@@ -253,7 +253,9 @@ For example:
```javascript
var data = {
errors: {
- name: 'Please enter a name'
+ name: [
+ 'Please enter a name'
+ ]
}
};
var source = '{{input_validation "name" "" errors}}' +
@@ -284,10 +286,10 @@ The errors object has to be in the following format:
```javascript
var errors = {
- fieldName: [
- 'Error message 1',
- 'Error message 2!'
- ]
+ fieldName: [
+ 'Error message 1',
+ 'Error message 2!'
+ ]
};
```

0 comments on commit 4fb84d1

Please sign in to comment.
Something went wrong with that request. Please try again.