diff --git a/DONATIONS.md b/DONATIONS.md index 5b44fd4b..c67c1a59 100644 --- a/DONATIONS.md +++ b/DONATIONS.md @@ -27,6 +27,7 @@ I'm grateful for all the generous donations. Iris is fully funded by these dona - [Ryan Brooks](https://github.com/ryanbyyc) donated 50 EUR at May 11 - [Juan Sebastián Suárez Valencia](https://github.com/Juanses) donated 20 EUR at September 11 - [Bob Lee](https://github.com/li3p) donated 20 EUR at September 16 +- [Celso Luiz](https://github.com/celsosz) donated 50 EUR at September 29 > The name of the donator added after his/her permission. @@ -35,4 +36,4 @@ I'm grateful for all the generous donations. Iris is fully funded by these dona - 13 EUR for the domain, [iris-go.com](https://iris-go.com) -**Available**: VAT(50) + VAT(20) + VAT(20) - 13 = 47,45 + 18,97 + 18,61 - 13 = 72,03 EUR +**Available**: VAT(50) + VAT(20) + VAT(20) + VAT(50) - 13 = 47,45 + 18,97 + 18,61 + 47,05 - 13 = 119,08 EUR diff --git a/HISTORY.md b/HISTORY.md index 5c363e9b..1f34fd8e 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -8,21 +8,21 @@ ```go // ... - iris.UsePreRender(func(ctx *iris.Context, filename string, binding interface{}, options ...map[string]interface{}) bool { - // put the 'Error' binding here, for the shake of the test - if b, isMap := binding.(map[string]interface{}); isMap { - b["Error"] = "error!" - } - // true= continue to the next PreRender - // false= do not continue to the next PreRender - // * but the actual Render will be called at any case * - return true - }) +iris.UsePreRender(func(ctx *iris.Context, filename string, binding interface{}, options ...map[string]interface{}) bool { + // put the 'Error' binding here, for the shake of the test + if b, isMap := binding.(map[string]interface{}); isMap { + b["Error"] = "error!" + } + // true= continue to the next PreRender + // false= do not continue to the next PreRender + // * but the actual Render will be called at any case * + return true +}) - iris.Get("/", func(ctx *Context) { - ctx.Render("hi.html", map[string]interface{}{"Username": "anybody"}) - // hi.html: