1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-23 03:45:56 +00:00

minor: compatibility: context render

This commit is contained in:
Gerasimos (Makis) Maropoulos
2022-09-27 20:43:01 +03:00
parent 028ad9f11e
commit 29010bfd7c
4 changed files with 23 additions and 1 deletions

View File

@@ -28,6 +28,8 @@ The codebase for Dependency Injection, Internationalization and localization and
## Fixes and Improvements
- Add `Context.Render` method for compatibility.
- Support of embedded [locale files](https://github.com/kataras/iris/blob/master/_examples/i18n/template-embedded/main.go) using standard `embed.FS` with the new `LoadFS` function.
- Support of direct embedded view engines (`HTML, Blocks, Django, Handlebars, Pug, Amber, Jet` and `Ace`) with `embed.FS` or `fs.FS` (in addition to `string` and `http.FileSystem` types).
- Add support for `embed.FS` and `fs.FS` on `app.HandleDir`.