Commit Graph

87 Commits

Author SHA1 Message Date
Tanner 2c5258cedc Update middleware.md 2017-02-13 09:20:50 +01:00
Jon Cox b7fd6bd409 Commands guide - Corrections. 2017-02-12 22:05:33 +00:00
Jon Cox 510e253879 Validation guide - Typo fixes. 2017-02-12 21:51:42 +00:00
Jon Cox a919db8a79 Middleware guide - Typo fix. 2017-02-12 21:45:32 +00:00
Jon Cox e1cdb941f2 Controllers guide - Consistency fixes. 2017-02-12 21:37:15 +00:00
Jon Cox 4aa4bbe8a2 Leaf guide - Typo correction. 2017-02-12 21:30:26 +00:00
Jon Cox cfed3b326a Views guide - Made "Providers" text a link. 2017-02-12 21:25:32 +00:00
Jon Cox f213eea50b More config guide typo corrections. 2017-02-12 21:18:50 +00:00
Jon Cox 1b014a1885 Fixed typo in config guide. 2017-02-12 21:10:42 +00:00
Jon Cox 28ca0cb04f Fixed typo in middleware guide. 2017-02-12 21:05:14 +00:00
Arda Keskiner 52de5279df Update config.md
"server" -> "servers"
2017-01-24 09:50:06 +02:00
Ashok Gelal c9aabf939a Remove duplicate reference to html-leaf plugin
`vscode-html-leaf`plugin and `html-leaf`plugin are same.
2017-01-15 09:34:59 -07:00
Tom Holland 8e3e02929d Merge branch 'master' of https://github.com/vapor/documentation 2016-12-27 10:54:24 -08:00
Tom Holland ab132c73e0 Added index parameter name 2016-12-27 10:53:04 -08:00
Tom Holland e39c53cd0e Fixed typo & added help for #index 2016-12-27 10:10:45 -08:00
Tom Holland e4ff1872b8 Added Link for VSCode plugin 2016-12-27 10:09:45 -08:00
Francisco Amado ef4224e460 Added VScode syntax highlighter 2016-12-20 10:26:58 +00:00
Tom Holland 65ab0f8e00 Added VS Code extension & fixed typo 2016-12-17 08:53:01 -08:00
Sundeep Gupta c4d5b713fa Explicitly unwrap optionals in JSON example
Without this, compiler fails
2016-12-14 16:26:42 -05:00
Tanner 58177d9c13 Merge pull request #95 from strogonoff/patch-1
Correct links to GitHub searches
2016-12-14 16:13:31 -05:00
Tanner acc6ab68b1 Merge pull request #93 from brki/middleware-docs
Fix sample middleware code
2016-12-14 16:12:53 -05:00
Tanner 0281f4059a Merge pull request #92 from codesman/leaf-documentation
Improved Leaf Docs
2016-12-14 16:12:31 -05:00
Anton Strogonoff 4182d40309 Fixed a broken link to GitHub search 2016-12-11 06:45:01 +03:00
Tanner 6bfffa7008 Merge pull request #89 from krystofbe/master
Typo
2016-12-09 17:52:20 -05:00
Brian 9f83ba384e Fix sample middleware code 2016-12-09 14:17:14 +01:00
Tom Holland 9ad6d8eaac Improved Leaf Docs 2016-12-08 09:58:14 -08:00
krystofbe ba7c7a91b8 Typo 2016-12-02 10:43:55 +01:00
isaoeka 0471eb6c16 Fix the position of try
In addition, correction of missing designation
https://github.com/vapor/mysql-provider/blob/master/Sources/VaporMySQL/Provider.swift#L61-L75
2016-11-27 23:37:53 +09:00
Tanner Nelson 9ecad20821 leaf highlighting 2016-11-17 12:08:27 -05:00
Tanner 2f8d8c4b25 Merge pull request #80 from vapor/Casperhr-config-update
Update config.md
2016-11-14 14:56:11 -05:00
Casper Rasmussen a8b8280371 Update config.md 2016-11-13 09:06:46 +01:00
Benedikt Reichert 4e69f97b61 Fixed broken link to Provider 2016-11-12 14:19:08 +01:00
Tom Holland 682bfafaa0 Specify rendered template filename 2016-11-07 10:03:33 -08:00
Tom Holland 2d64a5dff7 Added examples of extend and embed 2016-11-07 09:56:13 -08:00
Tanner Nelson bd7947ee2d fix views dir 2016-11-02 12:50:50 -04:00
Tanner Nelson 0bc7a93fcf fix typos 2016-11-02 12:47:16 -04:00
Tanner Nelson a2fde4c0f4 use new droplet init methods 2016-11-02 12:43:48 -04:00
steve-suh 0e0fa69075 Middleware documentation updated to reflect latest changes. 2016-10-26 15:30:48 -07:00
hyouuu 63ecf63b8e Typo 2016-10-19 10:03:27 -07:00
Logan Wright 6430033cdb review comments 2016-10-17 11:27:21 -04:00
Logan Wright 8c11cae1a1 Merge branch 'master' into leaf 2016-10-17 11:25:46 -04:00
Logan Wright b976b1faa3 Merge pull request #58 from iq3addLi/fix_controllers
fix drop.get(_:, _: ) -> drop.get(_:, handler: )
2016-10-17 11:16:51 -04:00
Bojan Stefanovic 57731f90cd Update views.md
stencil doesn't exist anymore
2016-10-15 17:33:53 -07:00
Ikumi Arakane 0f05227d60 fix drop.get(_:_: ) -> drop.get(_: handler: ) 2016-10-14 16:04:12 +09:00
Tanner 85208839ac Merge pull request #56 from vapor/1.1
1.1
2016-10-12 14:09:27 -04:00
Tanner Nelson a92b2086bc
add additional notes 2016-10-12 14:09:17 -04:00
Tanner 8dd4160aa9 Merge pull request #52 from zhao95/patch-2
Program syntax error
2016-10-03 15:06:35 -04:00
Tanner fc62ddbba8 Merge pull request #51 from zhao95/patch-1
Program syntax error
2016-10-03 15:06:20 -04:00
泽熙 82f1c3071a Program syntax error
if drop.config.environment == .production {
    ...
}
-------------------------------------------
if drop.environment == .production {
    ...
}
2016-10-03 18:36:54 +08:00
泽熙 090d51aae5 Program syntax error
drop.any("hello") { request in
	guard let name = request.data["name"].string else {
		throw Abort.badRequest
	}

	return "Hello, \(name)!"
}
---------------------------------------------------------------
drop.get("hello") { request in
    guard let name = request.data["name"]?.string else {
        throw Abort.badRequest
    }
    return "Hello, \(name)!"
}
2016-10-03 18:27:49 +08:00