beego-pongo2
beego-pongo2 copied to clipboard
Why can not the output value session in the template?
This is a bug or I used improperly?
self.SetSession("username", usrinfo.Username)
pongo2.Render(self.Ctx, self.TplNames, pongo2.Context{"data": self.Data})
{{data.username}}
Currently I solved the problem, do not know the right approach?