From c9aabf939ac721cbb3e68e10e3e29b8ef9a60961 Mon Sep 17 00:00:00 2001 From: Ashok Gelal Date: Sun, 15 Jan 2017 09:34:59 -0700 Subject: [PATCH 1/3] Remove duplicate reference to html-leaf plugin `vscode-html-leaf`plugin and `html-leaf`plugin are same. --- guide/leaf.md | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/guide/leaf.md b/guide/leaf.md index 1f5e2a79..eb8efb19 100644 --- a/guide/leaf.md +++ b/guide/leaf.md @@ -171,19 +171,15 @@ And use it just like we did [above](#index). [language-leaf](https://atom.io/packages/language-leaf) by ButkiewiczP ### Xcode + It is not currently possible to implement Leaf Syntax Highlighting in Xcode, however, using Xcode's HTML Syntax Coloring can help a bit. Select one or more Leaf files and then choose Editor > Syntax Coloring > HTML. Your selected Leaf files will now use Xcode's HTML Syntax Coloring. Unfortunately the usefulness of this is limited because this association will be removed when `vapor xcode` is run. There appears to be a way to [make Xcode file associations persist](http://stackoverflow.com/questions/9050035/how-to-make-xcode-recognize-a-custom-file-extension-as-objective-c-for-syntax-hi) but that requires a bit more kung-fu. +### VS Code -### Visual Studio Code - -[vscode-html-leaf](https://marketplace.visualstudio.com/items?itemName=Francisco.html-leaf) by FranciscoAmado +[html-leaf](https://marketplace.visualstudio.com/items?itemName=Francisco.html-leaf) by FranciscoAmado ### 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 From 5eb553707c18ca2df5a0c87bcc670e8fd311f981 Mon Sep 17 00:00:00 2001 From: Ashok Gelal Date: Sun, 15 Jan 2017 13:24:06 -0700 Subject: [PATCH 2/3] Simplify No need to add constraints here as it is implicit. --- routing/collection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing/collection.md b/routing/collection.md index 8270d8fd..ceaf3b69 100644 --- a/routing/collection.md +++ b/routing/collection.md @@ -17,7 +17,7 @@ import Routing class V1Collection: RouteCollection { typealias Wrapped = HTTP.Responder - func build(_ builder: B) { + func build(_ builder: B) { let v1 = builder.grouped("v1") let users = v1.grouped("users") let articles = v1.grouped("articles") From ec05fb5aeee3efff05372ef2e360069a28346f7a Mon Sep 17 00:00:00 2001 From: Ashok Gelal Date: Sun, 15 Jan 2017 13:39:00 -0700 Subject: [PATCH 3/3] Revert "Simplify" This reverts commit 5eb553707c18ca2df5a0c87bcc670e8fd311f981. --- routing/collection.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing/collection.md b/routing/collection.md index ceaf3b69..8270d8fd 100644 --- a/routing/collection.md +++ b/routing/collection.md @@ -17,7 +17,7 @@ import Routing class V1Collection: RouteCollection { typealias Wrapped = HTTP.Responder - func build(_ builder: B) { + func build(_ builder: B) { let v1 = builder.grouped("v1") let users = v1.grouped("users") let articles = v1.grouped("articles")