Commit Graph

57 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
333be428c4
use jet v5.0.2 (no breaking changes)
relative to: https://github.com/kataras/iris/pull/1616
2020-09-10 10:12:06 +03:00
Gerasimos (Makis) Maropoulos
b77227a0f9
accesslog: NEW log broker and many more features
some fixes about context clone, fix response recorder concurrent access, fix reload views with only ParseTemplate and more
2020-09-09 14:43:26 +03:00
Gerasimos (Makis) Maropoulos
a4996b90c8
Add a 'ParseTemplate' method on view engines to manually parse and add a template from a text
examples at: https://github.com/kataras/iris/tree/master/_examples/view/parse-template

relative to: https://github.com/kataras/iris/issues/1617
2020-09-08 07:55:33 +03:00
Gerasimos (Makis) Maropoulos
64038b09e3
add a ParseTemplate to the HTML view engine.
relative to: #1617

Wait for an answer from the issuer and if that's the expected behavior, do the same for the rest of the view engines
2020-09-08 01:58:02 +03:00
Gerasimos (Makis) Maropoulos
bf9f7617e2
examples: update go.mod (see previous commit) 2020-09-05 08:56:01 +03:00
Gerasimos (Makis) Maropoulos
e1f25eb098
Full support of the http.FileSystem on all view engines as requested at #1575
Also, the HandleDir accepts both string and http.FileSystem (interface{}) (like the view's fs)
2020-09-05 08:34:09 +03:00
Gerasimos (Makis) Maropoulos
46a3a99adf
various improvements and new 'UseOnce' method - read HISTORY.md 2020-08-06 03:35:58 +03:00
Gerasimos (Makis) Maropoulos
5d480dc801
Ability to register a view engine per group of routes or for the current a chain of handlers
Example at: https://github.com/kataras/iris/tree/master/_examples/view/context-view-engine
2020-08-05 19:34:55 +03:00
Gerasimos (Makis) Maropoulos
b363492cca
add 'iris.Blocks' template engine
read more about its features at: https://github.com/kataras/blocks
2020-08-05 06:46:45 +03:00
Gerasimos (Makis) Maropoulos
6844be57ea
add 'iris.Ace' template engine: _examples/view/template_ace_0 2020-08-03 05:46:04 +03:00
Gerasimos (Makis) Maropoulos
c3205dafa1 New DirOptions.Cache field for in-memory caching and pre-compression for the fastest possible static file server
Read HISTORY.md it contains a breaking change, second parameter of HandleDir should be iris.Dir(...) instead of just a string

relative to: https://github.com/kataras/iris/issues/1556#issuecomment-661057446


Former-commit-id: 14b48a06fb3b99287dff543932be2937a64233b9
2020-07-24 13:03:49 +03:00
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
Gerasimos (Makis) Maropoulos
87e08dbddc Update jet parser to v4.0.0 as requested at: #1551
Former-commit-id: 1ad89532d11716af7a49fe9aafca59e943d98ebe
2020-07-06 21:40:40 +03:00
Gerasimos (Makis) Maropoulos
ed45c77be5 reorganization of _examples and add some new examples such as iris+groupcache+mysql+docker
Former-commit-id: ed635ee95de7160cde11eaabc0c1dcb0e460a620
2020-06-07 15:26:06 +03:00
Gerasimos (Makis) Maropoulos
0d26f24eb7 examples: replace all app.Run(iris.Addr(...)) with app.Listen just for the shake of simplicity, both are doing the same exact thing as it's described on the http listening first example.
Former-commit-id: d20afb2e899aee658a8e0ed1693357798df93462
2020-03-05 22:41:27 +02:00
Gerasimos (Makis) Maropoulos
66c0f632c3 fix of https://github.com/kataras/iris/issues/1450#issuecomment-586581677
Former-commit-id: 2b8dfec7d43298bc9ace94595359867180634f04
2020-02-15 21:16:21 +02:00
Gerasimos (Makis) Maropoulos
c13fd84354 fix https://github.com/kataras/iris/issues/1450 and continue on implementing 1449
Former-commit-id: 617f64d061e88f050a443ea1751fa244164656c5
2020-02-14 23:34:56 +02:00
Gerasimos (Makis) Maropoulos
9c97a8a668 Update to version 12.1.6
Former-commit-id: 4d39e8a764a7c0d91b19a3710d8afe6c8c208c62
2020-02-05 12:36:21 +02:00
Gerasimos (Makis) Maropoulos
3093d65363 version 12.1.5
Former-commit-id: cda69f08955cb0d594e98bf26197ee573cbba4b2
2020-02-02 16:29:06 +02:00
Gerasimos (Makis) Maropoulos
269b832ade Update to version 12.1.4
Former-commit-id: aeb039ea25a831ad1087b1994be97b349a8ed4aa
2019-12-29 19:14:41 +02:00
Gerasimos (Makis) Maropoulos
04477c3e41 fixes, i18n, sitemap generator and new examples
Former-commit-id: 54801dc705ee0fa66232f65063f8a68c9cc31921
2019-12-13 23:06:18 +02:00
Gerasimos (Makis) Maropoulos
3945fa68d1 obey the vote of @1370 (77-111 at this point) - add import suffix on iris repository
We have to do the same on iris-contrib/examples, iris-contrib/middleware and e.t.c.


Former-commit-id: 0860688158f374bc137bc934b81b26dcd0e10964
2019-10-25 01:27:02 +03:00
Gerasimos (Makis) Maropoulos
221978e41a Upgrade to new go errors and some minor fixes and improvements including easier debugging of invalid routes and e.t.c.
Former-commit-id: 5809157b952ccc61a67a9861470774b3a6fee024
2019-10-24 18:57:05 +03:00
Gerasimos (Makis) Maropoulos
07046ab978 formatting
Former-commit-id: 037081db5d6d4434e873ca8b75334ee43e046b6a
2019-08-17 10:06:20 +03:00
Gerasimos (Makis) Maropoulos
416324cc42 push version 11.2.4
Former-commit-id: 3451c700c02aa98d7c3f02b305c381b250882791
2019-08-09 23:25:21 +03:00
Gerasimos (Makis) Maropoulos
e05333475a minor
Former-commit-id: eb7899a04d02dd002670a2b52bd1e2a6fd7ce7db
2019-08-09 08:29:22 +03:00
Gerasimos (Makis) Maropoulos
b7bc89335d fix https://github.com/kataras/iris/issues/1330
Former-commit-id: 221e01638b671586cdab2b84518bd6a1c8d07bda
2019-08-09 08:24:58 +03:00
Gerasimos (Makis) Maropoulos
3fdaa897ea fix https://github.com/kataras/iris/issues/1327
Former-commit-id: db3f5014cbc5148cfbe542ec69c2ff330677363b
2019-08-05 20:37:44 +03:00
Gerasimos (Makis) Maropoulos
736709aa75 resolve conflicts with current master v11.1.1
Former-commit-id: 659ff392e889f3a8552d7da3d44848f1a364f7b2
2019-07-23 19:20:07 +03:00
Gerasimos (Makis) Maropoulos
2576b3da34 add support for iris-specific form of generating connection IDs as requested at: https://github.com/kataras/neffos/issues/1#issuecomment-508689819
Former-commit-id: 0994b63373ebe2b5383a28f042aa2133061cbd18
2019-07-05 16:22:20 +03:00
Gerasimos (Makis) Maropoulos
076d9121f1 Implement a new View Engine for the Jet template parser as requested at: https://github.com/kataras/iris/issues/1281
Former-commit-id: 3e00bdfbf1f3998a1744c390c12fd70430ac0320
2019-06-22 21:34:19 +03:00
Gerasimos (Makis) Maropoulos
b71d4032e6 replace the redis library we used with another one, no performance differences but most options for connections pooling and read/write/connect timeout (two config fields are changed as well)
relative to: https://github.com/kataras/iris/issues/1285


Former-commit-id: c20530cd67144ab8d1c9325807fe5c13268fa428
2019-06-22 14:46:20 +03:00
Gerasimos (Makis) Maropoulos
d0104defa8 create the new FileServer and HandleDir, deprecate the rest APIBuilder/Party static methods and more
relative: https://github.com/kataras/iris/issues/1283 and removing pongo2 from vendor: https://github.com/kataras/iris/issues/1284

Former-commit-id: 3ec57b349f99faca2b8e36d9f7252db0b6ea080d
2019-06-21 19:43:25 +03:00
Gerasimos (Makis) Maropoulos
7af5f139e0 fix typo
Former-commit-id: 7b5d5530279789a3118190feb57776948b305662
2019-06-07 21:07:08 +03:00
Gerasimos (Makis) Maropoulos
ddec78af0a add Context.ResponseWriter.IsHijacked to report whether the underline conn is already hijacked and a lot of cleanup and minor ws stress test example improvements
Former-commit-id: 444d4f0718d5c6d7544834c5e44dafb872980238
2019-02-23 07:23:10 +02:00
Gerasimos (Makis) Maropoulos
22782bbefe examples: update the cors example to be easier for beginners
And update the pug view engine's vendor jade template engine to yesterday version 1 (tested and worked) to fix https://github.com/kataras/iris/issues/1125


Former-commit-id: 0ea7a8dd97ab13e5ecf984c379234cc671f5d84e
2018-11-06 04:06:50 +02:00
visgoods
de5be10955 add part function in html.go
layout.html 
 <head>
    {{ part "css" }}
</head>

home/index.html
{{ define "home/index-css"}}
<link rel="stylesheet" type="text/css" href="/public/css/home/index.css" />
{{ end }} 

in html/temple  the defined block is global variable, so the way of "{{ block "css" }}" in layout and "{{ define "css"}}{{end}}" in home/index.html and home/about.html   just one definition work, others will be over coved。  No use!!!

This part function like extend the block in layout.

Former-commit-id: c3e26a8227808cf2d1dc7121bcffe1a98ce3e678
2018-10-25 12:57:57 +08:00
Gerasimos Maropoulos
beef97fd5d Update vendor for Pug (Jade) Parser and add Iris + Pug examples in the _examples/view folder, relative to https://github.com/kataras/iris/issues/1003
Former-commit-id: e26a5701e00ec055f3bcf693c1980c7d22147310
2018-05-26 22:49:48 +03:00
Gerasimos Maropoulos
1165b4527a fix https://github.com/kataras/iris/issues/921
Former-commit-id: f8560514a7b48f83121ddd21d74b4016af4e1b67
2018-03-08 20:55:58 +02:00
Gerasimos (Makis) Maropoulos
bcd9a1bb17 Add wrappers for Pongo's AsValue() and AsSaveValue() by @neenar via PR: https://github.com/kataras/iris/pull/913
Former-commit-id: 06c4e4d849e994a8493308a8c33bd9f5e2c0eecc
2018-02-25 12:15:47 +02:00
Gerasimos Maropoulos
b20933e0bb upgrade go-bindata link to the most maintainable one
Former-commit-id: 58d5253b3332acef480d36f0cf716f2ad6b1c09e
2018-02-25 12:14:49 +02:00
Alexey McSakoff
a1aa1b66c6 Add wrappers for Pongo's AsValue() and AsSaveValue()
Former-commit-id: 642c8709b7566dbe5827759155167ec4d82212e3
2018-02-25 12:28:17 +04:00
Gerasimos (Makis) Maropoulos
a19e570c8a Update to version 10.0.1 - read more at: https://github.com/kataras/iris/blob/master/HISTORY.md#mo-15-jenuary-2018--v1001
Former-commit-id: 292d155c877ba3f9d1210db54c3df3fedd1d0c1c
2018-01-15 00:54:01 +02:00
honux
412c513e5f Fix subfolder templating issue
Fixed issue https://github.com/kataras/iris/issues/830

Former-commit-id: 1be9b65fd51322c927ebfdcb835ef1df5b018a5a
2017-12-03 23:21:11 -02:00
kataras
5a8b17f0e8 Add a useful(?) introduction README.md section to some examples
Former-commit-id: 14041307dc2f98810d2c20dee68d2c4a7aa63e13
2017-11-07 19:12:30 +02:00
Gerasimos (Makis) Maropoulos
a9ac0aee2f add layouts to the _examples/view/embedding-templates-into-app
Former-commit-id: 15085969eb5cad90022b249782e0620d4f5d267a
2017-10-12 23:22:18 +03:00
Gerasimos (Makis) Maropoulos
501c9d18d9 add some minor comments for the view/django's origin type getters pushed by https://github.com/kataras/iris/pull/765
Former-commit-id: 2d406337901d5d22636490bd8de3939a33cee882
2017-10-11 01:28:26 +03:00
Balthild Ires
8c974bfe52 Get pongo2's origin data type
Former-commit-id: 221a3d1e3af0088db86da7b2e3d9f20009cce785
2017-09-24 00:32:34 +08:00
hiveminded
89f79799d1 fix https://github.com/kataras/iris/issues/737 fix https://github.com/kataras/iris/issues/740
Former-commit-id: e760aa67d8750bfdd15fc84e2dedeb591c204ba9
2017-09-11 12:18:30 +03:00
kataras
b96476d100 Update to 8.3.0 | MVC Models and Bindings and fix of #723 , read HISTORY.md
Former-commit-id: d8f66d8d370c583a288333df2a14c6ee2dc56466
2017-08-18 17:09:18 +03:00