Salim Afiune
90833a73e8
Updated assert's parameters to match
...
Signed-off-by: Salim Afiune <salim@afiunemaya.com.mx>
2017-07-31 10:03:06 -04:00
Salim Afiune
820b43916a
Adds a new StringHTML Render method
...
This new `StringHTML()` method will allow users to render HTML without
the need of an actual file on disk.
Example:
```
r.GET("/saludos", func(c *gin.Context) {
c.StringHTML(200, "<html><body>Hola amigo!</body></html>")
})
```
Signed-off-by: Salim Afiune <salim@afiunemaya.com.mx>
2017-07-31 10:03:06 -04:00
Eason Lin
75ed286c60
feat: add SecureJSON func to prevent json hijacking
2017-07-08 01:21:30 +08:00
Harindu Perera
5be2123c1a
Added support for MessagePack binding and rendering ( #808 )
...
Added deps to vendor.json and fixed rendering bug
2017-02-23 22:08:37 +08:00
Bo-Yi Wu
787bff85e5
fix testing.
...
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2016-12-11 10:14:23 +08:00
Manu Mtz-Almeida
1f56e50083
Using Render() instead of Write()
2015-06-04 05:25:21 +02:00
Manu Mtz-Almeida
947b53d4a2
New Render API
2015-05-18 15:45:24 +02:00
Manu Mtz-Almeida
a9dad532ae
Performance improvement in renders
2015-05-11 01:02:17 +02:00
Manu Mtz-Almeida
d6771dc4a5
Cosmetic changes
2015-05-09 03:35:31 +02:00
Manu Mtz-Almeida
2d8f0a4801
Performance improvements when rendering
...
- Fast path for JSON, XML and plain text rendering
2015-05-07 12:44:52 +02:00
Manu Mtz-Almeida
f414648384
- More unit tests
...
- Improves HTML debug render
- InputHolder removed
- More debug logs
2015-05-05 15:06:38 +02:00
Manu Mtz-Almeida
0a192fb0fa
Tons of unit tests
2015-04-09 12:15:02 +02:00