mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
d697426cb6
Change the new ctx.Compres to ctx.CompressWriter and iris.Compress and iris.CompressReader as one iris.Compression Update the README example (master development branch) Former-commit-id: fb67858fe5be5662b5816df41020c28ff9a8c6f6 |
||
---|---|---|
.. | ||
controllers | ||
models | ||
templates | ||
main_test.go | ||
main.go | ||
README.md |
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 theqtc
command and re-build your application.