Merge pull request #1 from jonatack/readme_define-element_code_fix
Fix define-element code in README [skip ci]
This commit is contained in:
commit
3138f7f7c5
1 changed files with 2 additions and 2 deletions
|
@ -54,9 +54,9 @@ All children will be flattened as if they're given inline.
|
||||||
(div :id id :class "big-dog"
|
(div :id id :class "big-dog"
|
||||||
children
|
children
|
||||||
"dog")
|
"dog")
|
||||||
((div :id id :class "small-dog"
|
(div :id id :class "small-dog"
|
||||||
children
|
children
|
||||||
"dog"))))
|
"dog")))
|
||||||
```
|
```
|
||||||
`dog` will be defined as a function that takes `:id` and `:size` keyword arguments. `dog` returns an user-defined element object. Inside it, `children` will be replaced with the children elements you provided when creating this `dog`:
|
`dog` will be defined as a function that takes `:id` and `:size` keyword arguments. `dog` returns an user-defined element object. Inside it, `children` will be replaced with the children elements you provided when creating this `dog`:
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue