1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-10 05:25:58 +00:00

directly support embed.FS and fs.FS on view engines

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-09-21 23:26:12 +03:00
parent 5bc0796548
commit 95a8110f1e
12 changed files with 162 additions and 17 deletions

View File

@@ -28,8 +28,10 @@ The codebase for Dependency Injection, Internationalization and localization and
## Fixes and Improvements
- Support of direct embedded view templates with `embed.FS` or `fs.FS` (in addition to `string` and `http.FileSystem` types).
- Add `iris.Patches()` package-level function to customize Iris Request Context REST (and more to come) behavior.
- Add support for `embed.FS` on `app.HandleDir`.
- Add support for `embed.FS` and `fs.FS` on `app.HandleDir`.
- Minor fixes.
- Enable setting a custom "go-redis" client through `SetClient` go redis driver method or `Client` struct field on sessions/database/redis driver as requested at [chat](https://chat.iris-go.com).