1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 21:07:03 +00:00

Iris is looking for a new website design and logo

This commit is contained in:
Makis Maropoulos
2016-06-01 04:45:11 +03:00
parent 54348e9cc5
commit 8cd1cc2ac8
3 changed files with 11 additions and 5 deletions

View File

@@ -48,6 +48,15 @@ type (
HTML(status int, name string, binding interface{}, layout ...string) error
// Render same as .HTML but with status to iris.StatusOK (200)
Render(name string, binding interface{}, layout ...string) error
// RenderString accepts a template filename, its context data and returns the result of the parsed template (string)
RenderString(name string, binding interface{}, layout ...string) (result string, err error)
// MarkdownString parses the (dynamic) markdown string and returns the converted html string
MarkdownString(markdown string) string
// Markdown parses and renders to the client a particular (dynamic) markdown string
// accepts two parameters
// first is the http status code
// second is the markdown string
Markdown(status int, markdown string)
// JSON marshals the given interface object and writes the JSON response.
JSON(status int, v interface{}) error
// JSONP marshals the given interface object and writes the JSON response.