MCPcopy Create free account
hub / github.com/kataras/iris / index

Function index

_examples/view/parse-template/main.go:33–40  ·  view source on GitHub ↗
(ctx iris.Context)

Source from the content-addressed store, hash-verified

31}
32
33func index(ctx iris.Context) {
34 if err := ctx.View("program.html", iris.Map{
35 "Name": "Gerasimos",
36 }); err != nil {
37 ctx.HTML("<h3>%s</h3>", err.Error())
38 return
39 }
40}
41
42func layout(ctx iris.Context) {
43 ctx.ViewLayout("layouts/main.html")

Callers 1

layoutFunction · 0.70

Calls 3

ViewMethod · 0.65
ErrorMethod · 0.65
HTMLMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…