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

Iris cmd: download packages on every iris create command

This commit is contained in:
Makis Maropoulos
2016-06-03 06:17:40 +03:00
parent a3f3e7ebd2
commit dc2b40283e
5 changed files with 22 additions and 11 deletions

View File

@@ -48,6 +48,8 @@ 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
// MustRender same as .Render but returns 500 internal server http status (error) if rendering fail
MustRender(name string, binding interface{}, layout ...string)
// 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