mirror of https://github.com/vapor/docs.git
Fixed typo & added help for #index
This commit is contained in:
parent
e4ff1872b8
commit
e39c53cd0e
|
|
@ -85,10 +85,11 @@ Hello, #(name)!
|
||||||
Hello, #(friend.name)!
|
Hello, #(friend.name)!
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
#### Index: `#loop(object, "index")`
|
#### Index: `#index(object, Int|String)`
|
||||||
|
|
||||||
```
|
```
|
||||||
Hello, #index(friends, "0")!
|
Hello, #index(friends, 0)!
|
||||||
|
Hello, #index(friends, "best")!
|
||||||
```
|
```
|
||||||
|
|
||||||
#### If - Else: `#if(bool) ##else() { this }`
|
#### If - Else: `#if(bool) ##else() { this }`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue