1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-21 19:06:00 +00:00

Add the ability to use .yaml/yml files for the Configuration.

Former-commit-id: 0c49eb04d991aabf67970fe7f7b3ed969a36a708
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-02-16 05:00:08 +02:00
parent 40b62f2958
commit dd1d6837d9
5 changed files with 282 additions and 72 deletions

View File

@@ -14,7 +14,7 @@ to adapt the new changes to your application, it contains an overview of the new
- Template engines (two lines to add, same features as before, except their easier configuration)
- Basic middleware, that have been written by me, are transfared to the main repository[/middleware](https://github.com/kataras/iris/tree/master/middleware) with a lot of improvements to the `recover middleware` (see the next)
- `func(http.ResponseWriter, r *http.Request, next http.HandlerFunc)` signature is fully compatible using `iris.ToHandler` helper wrapper func, without any need of custom boilerplate code. So all net/http middleware out there are supported, no need to re-invert the world here, search to the internet and you'll find a suitable to your case.
- Developers can use a `yaml` files for the configuration using the `iris.YAML` function: `app := iris.New(iris.YAML("myconfiguration.yaml"))`
Fixes: