From 65ab0f8e006dff08830308806e298ab0ab832538 Mon Sep 17 00:00:00 2001 From: Tom Holland Date: Sat, 17 Dec 2016 08:53:01 -0800 Subject: [PATCH 1/5] Added VS Code extension & fixed typo --- guide/leaf.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/guide/leaf.md b/guide/leaf.md index e34bc6f6..9ea971aa 100644 --- a/guide/leaf.md +++ b/guide/leaf.md @@ -155,7 +155,7 @@ We can now register this Tag in our `main.swift` file with: ```swift if let leaf = drop.view as? LeafRenderer { - leaf.stem.register(Version()) + leaf.stem.register(Index()) } ``` @@ -177,3 +177,7 @@ There appears to be a way to [make Xcode file associations persist](http://stack ### CLion & AppCode Some preliminary work has been done to implement a Leaf Plugin for CLion & AppCode but lack of skill and interest in Java has slowed progress! If you have IntelliJ SDK experience and want to help with this, message Tom Holland on [Vapor Slack](http://vapor.team) + +### VS Code + +[html-leaf](https://marketplace.visualstudio.com/items?itemName=Francisco.html-leaf) by FranciscoAmado \ No newline at end of file From e4ff1872b874f40e1124da1525ce26c8c60ea785 Mon Sep 17 00:00:00 2001 From: Tom Holland Date: Tue, 27 Dec 2016 10:09:45 -0800 Subject: [PATCH 2/5] Added Link for VSCode plugin --- guide/leaf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/leaf.md b/guide/leaf.md index 9ea971aa..4273455f 100644 --- a/guide/leaf.md +++ b/guide/leaf.md @@ -180,4 +180,4 @@ Some preliminary work has been done to implement a Leaf Plugin for CLion & AppCo ### VS Code -[html-leaf](https://marketplace.visualstudio.com/items?itemName=Francisco.html-leaf) by FranciscoAmado \ No newline at end of file +[html-leaf](https://marketplace.visualstudio.com/items?itemName=Francisco.html-leaf) by FranciscoAmado From e39c53cd0e64c7607493da50221809fbd3d8b5ad Mon Sep 17 00:00:00 2001 From: Tom Holland Date: Tue, 27 Dec 2016 10:10:45 -0800 Subject: [PATCH 3/5] Fixed typo & added help for #index --- guide/leaf.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/guide/leaf.md b/guide/leaf.md index 4273455f..eb226d65 100644 --- a/guide/leaf.md +++ b/guide/leaf.md @@ -85,10 +85,11 @@ Hello, #(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 }` From ad9c0fa28650aa9d6a0f050cfe4e484ee72e292f Mon Sep 17 00:00:00 2001 From: Tom Holland Date: Tue, 27 Dec 2016 10:47:42 -0800 Subject: [PATCH 4/5] Added template help --- getting-started/install-toolbox.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/getting-started/install-toolbox.md b/getting-started/install-toolbox.md index f6e2347f..f704292e 100644 --- a/getting-started/install-toolbox.md +++ b/getting-started/install-toolbox.md @@ -27,6 +27,9 @@ Make sure the Toolbox installed successfully by running the help query. You shou ```sh vapor --help ``` +## Create A Project + +Now that you have installed the Toolbox, you can create your first Vapor project following the [Hello, World guide](hello-world.md). ### Updating @@ -36,6 +39,19 @@ The toolbox can update itself. This may be useful if you experience any issues i vapor self update ``` -## Create A Project +### Templates -Now that you have installed the Toolbox, you can create your first Vapor project following the [Hello, World guide](hello-world.md). \ No newline at end of file +The toolbox can create a project from the Vapor basic-template or any other git repo. + +```sh +vapor new [--template=] +``` + +The toolbox will build an absolute URL based on what you pass as the template option. If you do not specify a template option, the project will be built from the Vapor basic-template. + +```sh +Default(no template option specified) => https://github.com/vapor/basic-template +http(s)://example.com/repo-path => http(s)://example.com/repo-path +user/repo => https://github.com/user/repo +light => https://github.com/vapor/light-template +``` From ab132c73e09d11175eaea5e36a95f1e46c04eaf6 Mon Sep 17 00:00:00 2001 From: Tom Holland Date: Tue, 27 Dec 2016 10:53:04 -0800 Subject: [PATCH 5/5] Added index parameter name --- guide/leaf.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/leaf.md b/guide/leaf.md index eb226d65..3d784a00 100644 --- a/guide/leaf.md +++ b/guide/leaf.md @@ -85,7 +85,7 @@ Hello, #(name)! Hello, #(friend.name)! } ``` -#### Index: `#index(object, Int|String)` +#### Index: `#index(object, _ index: Int|String)` ``` Hello, #index(friends, 0)!