diff --git a/FAQ.md b/FAQ.md
index 26c0bcf1..1d018dd6 100644
--- a/FAQ.md
+++ b/FAQ.md
@@ -60,17 +60,30 @@ Iris may have reached version 8, but we're not stopping there. We have many feat
Yes, not only because you will learn Golang in the same time, but there are some positions
open for Iris-specific developers the time we speak.
-- https://glints.id/opportunities/jobs/5553
+Go to our facebook page, like it and receive notifications about new job offers, we already have couple of them stay at the top of the page: https://www.facebook.com/iris.framework
+
+
## Do we have a community Chat?
-Yes, https://kataras.rocket.chat/channel/iris.
+Yes, https://chat.iris-go.com
https://github.com/kataras/iris/issues/646
@@ -78,4 +91,4 @@ https://github.com/kataras/iris/issues/646
By normal people like you, who help us by donating small or larger amounts of money.
-Help this project to continue deliver awesome and unique features with the higher code quality as possible by donating any amount via [PayPal](https://www.paypal.me/kataras)!
\ No newline at end of file
+Help this project to continue deliver awesome and unique features with the highest possible code quality as possible by donating any amount via [PayPal](https://www.paypal.me/kataras). Your name will be published [here](https://iris-go.com/donate) after your approval via e-mail.
\ No newline at end of file
diff --git a/HISTORY.md b/HISTORY.md
index 7e43f088..2f1f7623 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -16,19 +16,161 @@ Developers are not forced to upgrade if they don't really need it. Upgrade whene
> Iris uses the [vendor directory](https://docs.google.com/document/d/1Bz5-UB7g2uPBdOx-rw5t9MxJwkfpx90cqG9AFL0JAYo) feature, so you get truly reproducible builds, as this method guards against upstream renames and deletes.
**How to upgrade**: Open your command-line and execute this command: `go get -u github.com/kataras/iris` or let the automatic updater do that for you.
-
+> The new version adds 75 plus new commits, read them if you are developing a web framework based on Iris. Why v10? 9 was skipped for undefined reasons.
+
+## Hero
+
+The new package [hero](hero) contains features for binding any object or function that `handlers` may use, these are called dependencies. Hero funcs can also return any type of values, these values will be dispatched to the client.
+
+> You may saw binding before but you didn't have code editor's support, with Iris you get truly safe binding thanks to the new `hero` package. It's also fast, near to raw handlers performance because Iris calculates everything before server ran!
+
+Below you will see some screenshots we prepared for you in order to be easier to understand:
+
+### 1. Path Parameters - Built'n Dependencies
+
+
+
+### 2. Services - Static Dependencies
+
+
+
+### 3. Per-Request - Dynamic Dependencies
+
+
+
+`hero funcs` are very easy to understand and when you start using them **you never go back**.
+
+Examples:
+
+- [Basic](_examples/hero/basic/main.go)
+- [Overview](_examples/hero/overview)
+
+## MVC
+
+You have to understand the `hero` package in order to use the `mvc`, because `mvc` uses the `hero` internally for the controller's methods you use as routes, the same rules applied to those controller's methods of yours as well.
+
+With this version you can register **any controller's methods as routes manually**, you can **get a route based on a method name and change its `Name` (useful for reverse routing inside templates)**, you can use any **dependencies** registered from `hero.Register` or `mvc.New(iris.Party).Register` per mvc application or per-controller, **you can still use `BeginRequest` and `EndRequest`**, you can catch **`BeforeActivation(b mvc.BeforeActivation)` to add dependencies per controller and `AfterActivation(a mvc.AfterActivation)` to make any post-validations**, **singleton controllers when no dynamic dependencies are used**, **Websocket controller, as simple as a `websocket.Connection` dependency** and more...
+
+Examples:
+
+**If you used MVC before then read very carefully: MVC CONTAINS SOME BREAKING CHANGES BUT YOU CAN DO A LOT MORE AND EVEN FASTER THAN BEFORE**
+
+**PLEASE READ THE EXAMPLES CAREFULLY, WE'VE MADE THEM FOR YOU**
+
+Old examples are here as well. Compare the two different versions of each example to understand what you win if you upgrade now.
+
+| NEW | OLD |
+| -----------|-------------|
+| [Hello world](_examples/mvc/hello-world/main.go) | [OLD Hello world](https://github.com/kataras/iris/blob/v8/_examples/mvc/hello-world/main.go) |
+| [Session Controller](_examples/mvc/session-controller/main.go) | [OLD Session Controller](https://github.com/kataras/iris/blob/v8/_examples/mvc/session-controller/main.go) |
+| [Overview - Plus Repository and Service layers](_examples/mvc/overview) | [OLD Overview - Plus Repository and Service layers](https://github.com/kataras/iris/tree/v8/_examples/mvc/overview) |
+| [Login showcase - Plus Repository and Service layers](_examples/mvc/login) | [OLD Login showcase - Plus Repository and Service layers](https://github.com/kataras/iris/tree/v8/_examples/mvc/login) |
+| [Singleton](_examples/mvc/singleton) | **NEW** |
+| [Websocket Controller](_examples/mvc/websocket) | **NEW** |
+| [Vue.js Todo MVC](_examples/tutorial/vuejs-todo-mvc) | **NEW** |
+
+## context#PostMaxMemory
+
+Remove the old static variable `context.DefaultMaxMemory` and replace it with the configuration `WithPostMaxMemory`.
+
+```go
+// WithPostMaxMemory sets the maximum post data size
+// that a client can send to the server, this differs
+// from the overral request body size which can be modified
+// by the `context#SetMaxRequestBodySize` or `iris#LimitRequestBodySize`.
+//
+// Defaults to 32MB or 32 << 20 if you prefer.
+func WithPostMaxMemory(limit int64) Configurator
+```
+
+If you used that old static field you will have to change that single line.
+
+Usage:
+
+```go
+import "github.com/kataras/iris"
+
+func main() {
+ app := iris.New()
+ // [...]
+
+ app.Run(iris.Addr(":8080"), iris.WithPostMaxMemory(10 << 20))
+}
+```
+
+## context#UploadFormFiles
+
+New method to upload multiple files, should be used for common upload actions, it's just a helper function.
+
+```go
+// UploadFormFiles uploads any received file(s) from the client
+// to the system physical location "destDirectory".
+//
+// The second optional argument "before" gives caller the chance to
+// modify the *miltipart.FileHeader before saving to the disk,
+// it can be used to change a file's name based on the current request,
+// all FileHeader's options can be changed. You can ignore it if
+// you don't need to use this capability before saving a file to the disk.
+//
+// Note that it doesn't check if request body streamed.
+//
+// Returns the copied length as int64 and
+// a not nil error if at least one new file
+// can't be created due to the operating system's permissions or
+// http.ErrMissingFile if no file received.
+//
+// If you want to receive & accept files and manage them manually you can use the `context#FormFile`
+// instead and create a copy function that suits your needs, the below is for generic usage.
+//
+// The default form's memory maximum size is 32MB, it can be changed by the
+// `iris#WithPostMaxMemory` configurator at main configuration passed on `app.Run`'s second argument.
+//
+// See `FormFile` to a more controlled to receive a file.
+func (ctx *context) UploadFormFiles(
+ destDirectory string,
+ before ...func(string, string),
+ ) (int64, error)
+```
+
+Example can be found [here](_examples/http_request/upload-files/main.go).
+
+## context#View
+
+Just a minor addition, add a second optional variadic argument to the `context#view` method to accept a single value for template binding.
+When you just want one value and not key-value pairs, you used to use an empty string on the `ViewData`, which is fine, especially if you preload these from a previous handler/middleware in the request handlers chain.
+
+```go
+func(ctx iris.Context) {
+ ctx.ViewData("", myItem{Name: "iris" })
+ ctx.View("item.html")
+}
+```
+
+Same as:
+
+```go
+func(ctx iris.Context) {
+ ctx.View("item.html", myItem{Name: "iris" })
+}
+```
+
+```html
+Item's name: {{.Name}}
+```
+
+## Session#GetString
+
+`sessions/session#GetString` can now return a filled value even if the stored value is a type of integer, just like the memstore, the context's temp store, the context's path parameters and the context's url parameters.
\ No newline at end of file
diff --git a/README.md b/README.md
index 0c20498a..248abb1b 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
-[](https://travis-ci.org/kataras/iris) [](http://goreportcard.com/report/kataras/iris) [](https://github.com/kataras/iris/issues?q=is%3Aissue+is%3Aclosed) [](https://kataras.rocket.chat/channel/iris) [](https://github.com/kataras/iris/tree/master/_examples) [](https://github.com/kataras/iris/releases)
+[](https://travis-ci.org/kataras/iris) [](http://goreportcard.com/report/kataras/iris) [](https://kataras.rocket.chat/channel/iris) [](https://github.com/kataras/iris/tree/master/_examples) [](https://github.com/kataras/iris/releases)
Iris is a fast, simple yet fully featured and very efficient web framework for Go.
@@ -41,9 +41,10 @@ _Updated at: [Tuesday, 21 November 2017](_benchmarks/README_UNIX.md)_
## Support
-- [HISTORY](HISTORY.md) file is your best friend, it contains information about all the new features for the current release, you can even search for [older versions](https://github.com/kataras/iris/releases)
+- [HISTORY](HISTORY.md#mo-01-jenuary-2018--v1000) file is your best friend, it contains information about the latest features and changes
- Did you happen to find a bug? Post it at [github issues](https://github.com/kataras/iris/issues)
- Do you have any questions or need to speak with someone experienced to solve a problem at real-time? Join us to the [community chat](https://chat.iris-go.com)
+- Complete our form-based user experience report by clicking [here](https://docs.google.com/forms/d/e/1FAIpQLSdCxZXPANg_xHWil4kVAdhmh7EBBHQZ_4_xSZVDL-oCC_z5pA/viewform?usp=sf_link)
- Do you like the framework? Tweet something about it! The People have spoken:
@@ -81,15 +82,11 @@ _Updated at: [Tuesday, 21 November 2017](_benchmarks/README_UNIX.md)_
-
-
-
-
-For more information about contributing to the Iris project please check the [CONTRIBUTING.md](CONTRIBUTING.md) file.
+> For more information about contributing to the Iris project please check the [CONTRIBUTING.md](CONTRIBUTING.md) file.
[List of all Contributors](https://github.com/kataras/iris/graphs/contributors)
@@ -103,6 +100,7 @@ First of all, the most correct way to begin with a web framework is to learn the
### Iris starter kits
+
+
+1. [A basic web app built in Iris for Go](https://github.com/gauravtiwari/go_iris_app)
+2. [A mini social-network created with the awesome Iris๐๐](https://github.com/iris-contrib/Iris-Mini-Social-Network)
+3. [Iris isomorphic react/hot reloadable/redux/css-modules starter kit](https://github.com/iris-contrib/iris-starter-kit)
+4. [Demo project with react using typescript and Iris](https://github.com/ionutvilie/react-ts)
+5. [Self-hosted Localization Management Platform built with Iris and Angular](https://github.com/iris-contrib/parrot)
+6. [Iris + Docker and Kubernetes](https://github.com/iris-contrib/cloud-native-go)
+7. [Quickstart for Iris with Nanobox](https://guides.nanobox.io/golang/iris/from-scratch)
+8. [A Hasura starter project with a ready to deploy Golang hello-world web app with IRIS](https://hasura.io/hub/project/hasura/hello-golang-iris)
> Did you build something similar? Let us [know](https://github.com/kataras/iris/pulls)!
diff --git a/VERSION b/VERSION
index 87e1dd41..2823854a 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-8.5.8:https://github.com/kataras/iris/blob/master/HISTORY.md#th-09-november-2017--v858
\ No newline at end of file
+10.0.0:https://github.com/kataras/iris/blob/master/HISTORY.md#mo-01-jenuary-2018--v1000
\ No newline at end of file
diff --git a/_examples/README.md b/_examples/README.md
index 1f69fa4d..647e008d 100644
--- a/_examples/README.md
+++ b/_examples/README.md
@@ -112,6 +112,11 @@ Navigate through examples for a better understanding.
* [per-route](routing/writing-a-middleware/per-route/main.go)
* [globally](routing/writing-a-middleware/globally/main.go)
+### hero
+
+- [Basic](hero/basic/main.go)
+- [Overview](hero/overview)
+
### MVC

@@ -313,7 +318,8 @@ You can serve [quicktemplate](https://github.com/valyala/quicktemplate) and [her
- [Bind JSON](http_request/read-json/main.go)
- [Bind Form](http_request/read-form/main.go)
-- [Upload/Read Files](http_request/upload-files/main.go)
+- [Upload/Read File](http_request/upload-file/main.go)
+- [Upload multiple files with an easy way](http_request/upload-files/main.go)
> The `context.Request()` returns the same *http.Request you already know, these examples show some places where the Context uses this object. Besides that you can use it as you did before iris.
diff --git a/_examples/hero/basic/README.md b/_examples/hero/basic/README.md
index 59465659..c039ce97 100644
--- a/_examples/hero/basic/README.md
+++ b/_examples/hero/basic/README.md
@@ -8,6 +8,6 @@

-## References
+## 3. Per-Request - Dynamic Dependencies
-- [explore](https://github.com/kataras/explore)
\ No newline at end of file
+
\ No newline at end of file
diff --git a/_examples/http_request/upload-file/main.go b/_examples/http_request/upload-file/main.go
new file mode 100644
index 00000000..38af8c09
--- /dev/null
+++ b/_examples/http_request/upload-file/main.go
@@ -0,0 +1,73 @@
+package main
+
+import (
+ "crypto/md5"
+ "fmt"
+ "io"
+ "os"
+ "strconv"
+ "time"
+
+ "github.com/kataras/iris"
+)
+
+func main() {
+ app := iris.New()
+
+ app.RegisterView(iris.HTML("./templates", ".html"))
+
+ // Serve the upload_form.html to the client.
+ app.Get("/upload", func(ctx iris.Context) {
+ // create a token (optionally).
+
+ now := time.Now().Unix()
+ h := md5.New()
+ io.WriteString(h, strconv.FormatInt(now, 10))
+ token := fmt.Sprintf("%x", h.Sum(nil))
+
+ // render the form with the token for any use you'd like.
+ // ctx.ViewData("", token)
+ // or add second argument to the `View` method.
+ // Token will be passed as {{.}} in the template.
+ ctx.View("upload_form.html", token)
+ })
+
+ // Handle the post request from the upload_form.html to the server
+ app.Post("/upload", func(ctx iris.Context) {
+ // iris.LimitRequestBodySize(32 <<20) as middleware to a route
+ // or use ctx.SetMaxRequestBodySize(32 << 20)
+ // to limit the whole request body size,
+ //
+ // or let the configuration option at app.Run for global setting
+ // for POST/PUT methods, including uploads of course.
+
+ // Get the file from the request.
+ file, info, err := ctx.FormFile("uploadfile")
+
+ if err != nil {
+ ctx.StatusCode(iris.StatusInternalServerError)
+ ctx.HTML("Error while uploading: " + err.Error() + "")
+ return
+ }
+
+ defer file.Close()
+ fname := info.Filename
+
+ // Create a file with the same name
+ // assuming that you have a folder named 'uploads'
+ out, err := os.OpenFile("./uploads/"+fname,
+ os.O_WRONLY|os.O_CREATE, 0666)
+
+ if err != nil {
+ ctx.StatusCode(iris.StatusInternalServerError)
+ ctx.HTML("Error while uploading: " + err.Error() + "")
+ return
+ }
+ defer out.Close()
+
+ io.Copy(out, file)
+ })
+
+ // start the server at http://localhost:8080 with post limit at 32 MB.
+ app.Run(iris.Addr(":8080"), iris.WithPostMaxMemory(32<<20))
+}
diff --git a/_examples/http_request/upload-file/templates/upload_form.html b/_examples/http_request/upload-file/templates/upload_form.html
new file mode 100644
index 00000000..9782eadf
--- /dev/null
+++ b/_examples/http_request/upload-file/templates/upload_form.html
@@ -0,0 +1,12 @@
+
+