Skip to content

Commit

Permalink
README formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
pupeno committed Oct 11, 2015
1 parent 53b9ca4 commit 737fd8c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ The form is just your traditional Reagent template, in this case outputting a Bo
[:div.text-danger {:free-form/error-message {:key :email}} [:p]]]]]]
```

There are three special keywords added.
There are three special keywords added:

* ```:free-form/field``` marks the element as being an input and the passed key is the to be used from the map of values.
As an alternative, you can pass a set of keys, as in: ```{:ks [:user :email]}```, as you do with the function ```get-in```.
Expand All @@ -93,7 +93,6 @@ As an alternative, you can pass a set of keys, as in: ```{:ks [:user :email]}```
case ```:div.text-danger``` will not be output at all. The field to be read form the map of errors is specified by
```:key``` or ```:ks```. Lastly, the element inside this element will be used to output each of the error messages, so
this might end up looking like:

```clojure
[:div.text-danger [:p "Password is too short"] [:p "Password must contain a symbol"]]
```
Expand Down

0 comments on commit 737fd8c

Please sign in to comment.