1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-02 01:37:11 +00:00

add an app.View example for parsing and writing templates outside of the HTTP scope(context.View)

Former-commit-id: e65d8ece521c778dedf45cf2f522383c26b9901b
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-01-22 15:42:19 +02:00
parent 68acbf3f31
commit 4b4dbb04af
7 changed files with 79 additions and 8 deletions

View File

@@ -294,7 +294,7 @@ Follow the examples below,
- [The `url` tmpl func](view/template_html_4/main.go)
- [Inject Data Between Handlers](view/context-view-data/main.go)
- [Embedding Templates Into App Executable File](view/embedding-templates-into-app/main.go)
- [Write to a custom `io.Writer`](view/write-to)
You can serve [quicktemplate](https://github.com/valyala/quicktemplate) and [hero templates](https://github.com/shiyanhui/hero/hero) files too, simply by using the `context#ResponseWriter`, take a look at the [http_responsewriter/quicktemplate](http_responsewriter/quicktemplate) and [http_responsewriter/herotemplate](http_responsewriter/herotemplate) examples.