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

reorganization of _examples and add some new examples such as iris+groupcache+mysql+docker

Former-commit-id: ed635ee95de7160cde11eaabc0c1dcb0e460a620
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-06-07 15:26:06 +03:00
parent 9fdcb4c7fb
commit ed45c77be5
328 changed files with 4262 additions and 41621 deletions

View File

@@ -0,0 +1,19 @@
First of all, install [quicktemplate](https://github.com/valyala/quicktemplate) package and [quicktemplate compiler](https://github.com/valyala/quicktemplate/tree/master/qtc)
```sh
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:
```sh
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.