mirror of https://github.com/vapor/docs.git
Misc docs improvements (#806)
* Fix leaf typo, update version numbers, add warning about Command Lines Tools, add tip about vapor github templates * Change to arm Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org> * Remove xcode CLI tools warning * Update versions in doc translations --------- Co-authored-by: Gwynne Raskind <gwynne@darkrainfall.org>
This commit is contained in:
parent
0468bbd255
commit
3512ad7397
|
|
@ -18,6 +18,9 @@ vapor new hello -n
|
|||
!!! tip
|
||||
The `-n` flag gives you a bare bones template by automatically answering no to all questions.
|
||||
|
||||
!!! tip
|
||||
You can also get the latest template from GitHub without Vapor Toolbox by cloning the [template respository](https://github.com/vapor/template-bare)
|
||||
|
||||
!!! tip
|
||||
Vapor and the template now uses `async`/`await` by default.
|
||||
If you cannot update to macOS 12 and/or need to continue to use `EventLoopFuture`s,
|
||||
|
|
@ -28,7 +31,7 @@ Once the command finishes, change into the newly created folder:
|
|||
|
||||
```sh
|
||||
cd hello
|
||||
```
|
||||
```
|
||||
|
||||
## Build & Run
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Installation unter macOS
|
||||
|
||||
Die Mindestvoraussetzung für Vapor unter macOS ist Swift 5.2 (oder aktueller).
|
||||
Die Mindestvoraussetzung für Vapor unter macOS ist Swift 5.6 (oder aktueller).
|
||||
|
||||
## Xcode
|
||||
|
||||
|
|
@ -13,8 +13,8 @@ Sobald du die App heruntergeladen hast, führe die Installation aus. Starte nach
|
|||
```sh
|
||||
swift --version
|
||||
|
||||
Apple Swift version 5.2 (swiftlang-1100.0.270.13 clang-1100.0.33.7)
|
||||
Target: x86_64-apple-darwin19.0.0
|
||||
swift-driver version: 1.75.2 Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100)
|
||||
Target: arm64-apple-macosx13.0
|
||||
```
|
||||
|
||||
## Toolbox
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
# Install on macOS
|
||||
|
||||
To use Vapor on macOS, you will need Swift 5.2 or greater. Swift and all of its dependencies come bundled with Xcode.
|
||||
To use Vapor on macOS, you will need Swift 5.6 or greater. Swift and all of its dependencies come bundled with Xcode.
|
||||
|
||||
## Install Xcode
|
||||
|
||||
Install [Xcode 11.4 or greater](https://itunes.apple.com/us/app/xcode/id497799835?mt=12) from the Mac App Store.
|
||||
Install [Xcode](https://itunes.apple.com/us/app/xcode/id497799835?mt=12) from the Mac App Store.
|
||||
|
||||

|
||||
|
||||
|
|
@ -19,11 +19,11 @@ swift --version
|
|||
You should see Swift's version information printed.
|
||||
|
||||
```sh
|
||||
Apple Swift version 5.2 (swiftlang-1100.0.270.13 clang-1100.0.33.7)
|
||||
Target: x86_64-apple-darwin19.0.0
|
||||
swift-driver version: 1.75.2 Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100)
|
||||
Target: arm64-apple-macosx13.0
|
||||
```
|
||||
|
||||
Vapor 4 requires Swift 5.2 or greater.
|
||||
Vapor 4 requires Swift 5.6 or greater.
|
||||
|
||||
## Install Toolbox
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
# Installeren op macOS
|
||||
|
||||
Om Vapor te gebruiken op macOS, zal je Swift 5.2 of hoger nodig hebben. Swift en al zijn afhankelijkheden komen gebundeld met Xcode.
|
||||
Om Vapor te gebruiken op macOS, zal je Swift 5.6 of hoger nodig hebben. Swift en al zijn afhankelijkheden komen gebundeld met Xcode.
|
||||
|
||||
## Installeer Xcode
|
||||
|
||||
Installeer [Xcode 11.4 of hoger](https://itunes.apple.com/us/app/xcode/id497799835?mt=12) van de Mac App Store.
|
||||
Installeer [Xcode](https://itunes.apple.com/us/app/xcode/id497799835?mt=12) van de Mac App Store.
|
||||
|
||||

|
||||
|
||||
|
|
@ -19,11 +19,11 @@ swift --version
|
|||
Je zou de Swift versie informatie afgedrukt moeten zien.
|
||||
|
||||
```sh
|
||||
Apple Swift version 5.2 (swiftlang-1100.0.270.13 clang-1100.0.33.7)
|
||||
Target: x86_64-apple-darwin19.0.0
|
||||
swift-driver version: 1.75.2 Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100)
|
||||
Target: arm64-apple-macosx13.0
|
||||
```
|
||||
|
||||
Vapor 4 vereist Swift 5.2 of hoger.
|
||||
Vapor 4 vereist Swift 5.6 of hoger.
|
||||
|
||||
## Installeer de Toolbox
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
# 在 macOS 上安装
|
||||
|
||||
要在 macOS 上使用 Vapor,你将需要 Swift 5.2 或更高版本。 Swift 及其所有依赖项都与 Xcode 捆绑。
|
||||
要在 macOS 上使用 Vapor,你将需要 Swift 5.6 或更高版本。 Swift 及其所有依赖项都与 Xcode 捆绑。
|
||||
|
||||
## 安装 Xcode
|
||||
|
||||
从 [Mac App Store](https://itunes.apple.com/us/app/xcode/id497799835?mt=12) 安装 Xcode 11.4 或更高版本。
|
||||
从 [Mac App Store](https://itunes.apple.com/us/app/xcode/id497799835?mt=12) 安装 Xcode 或更高版本。
|
||||
|
||||

|
||||

|
||||
|
||||
下载 Xcode 之后,必须将其打开以完成安装。可能还需要耐心等待一会儿。
|
||||
|
||||
|
|
@ -19,11 +19,11 @@ swift --version
|
|||
你应该能够看到 Swift 的版本信息已打印。
|
||||
|
||||
```sh
|
||||
Apple Swift version 5.2 (swiftlang-1100.0.270.13 clang-1100.0.33.7)
|
||||
Target: x86_64-apple-darwin19.0.0
|
||||
swift-driver version: 1.75.2 Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100)
|
||||
Target: arm64-apple-macosx13.0
|
||||
```
|
||||
|
||||
Vapor 4 需要 Swift 5.2 或更高版本。
|
||||
Vapor 4 需要 Swift 5.6 或更高版本。
|
||||
|
||||
## 安装工具箱(Install Toolbox)
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ Leaf tags are made up of four elements:
|
|||
- Token `#`: This signals the leaf parser to begin looking for a tag.
|
||||
- Name `count`: that identifies the tag.
|
||||
- Parameter List `(users)`: May accept zero or more arguments.
|
||||
- Body: An optional body can be supplied to some tags using a semicolon and a closing tag
|
||||
- Body: An optional body can be supplied to some tags using a colon and a closing tag
|
||||
|
||||
There can be many different usages of these four elements depending on the tag's implementation. Let's look at a few examples of how Leaf's built-in tags might be used:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue