I have a controller passing two variables
func (a App) Page() revel.Result {
var g []*G
...
return c.Render(p, g)
}
in my .html
I want to iterate over g
. Is it possible to access p inside the iteration? I couldnt manage. My try looks like the following
{{range .g}}
... // print g related stuff
.p
{{end}}
and it throws can't evaluate field p in type *G
.