iris/_examples/view/quicktemplate
Gerasimos (Makis) Maropoulos 0f113dfcda (#1554) Add support for all common compressions (write and read)
- Remove the context.Context interface and export the *context, the iris.Context now points to the pointer\nSupport compression and rate limiting in the FileServer\nBit of code organisation


Former-commit-id: ad1c61bf968059510c6be9e7f2cceec7da70ba17
2020-07-10 23:21:09 +03:00
..
controllers (#1554) Add support for all common compressions (write and read) 2020-07-10 23:21:09 +03:00
models reorganization of _examples and add some new examples such as iris+groupcache+mysql+docker 2020-06-07 15:26:06 +03:00
templates reorganization of _examples and add some new examples such as iris+groupcache+mysql+docker 2020-06-07 15:26:06 +03:00
main_test.go reorganization of _examples and add some new examples such as iris+groupcache+mysql+docker 2020-06-07 15:26:06 +03:00
main.go fix #1531 and introduce the 'Configuration.ResetOnFireErrorCode' (read HISTORY.md) 2020-06-08 05:16:55 +03:00
README.md reorganization of _examples and add some new examples such as iris+groupcache+mysql+docker 2020-06-07 15:26:06 +03:00

First of all, install quicktemplate package and quicktemplate compiler

go get -u github.com/valyala/quicktemplate
go get -u github.com/valyala/quicktemplate/qtc

The example has the Go code compiled already for you, therefore:

go run main.go # http://localhost:8080

However there is an instruction below, full documentation can be found at https://github.com/valyala/quicktemplate.

Save your template files into templates folder under the extension *.qtpl, open your terminal and run qtc inside this folder.

If all went ok, *.qtpl.go files must appear in the templates folder. These files contain the Go code for all *.qtpl files.

Remember, each time you change a a /templates/*.qtpl file you have to run the qtc command and re-build your application.