beego-pongo2 icon indicating copy to clipboard operation
beego-pongo2 copied to clipboard

Why can not the output value session in the template?

Open insionng opened this issue 9 years ago • 1 comments

This is a bug or I used improperly?

insionng avatar Aug 18 '14 05:08 insionng

            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?

insionng avatar Aug 18 '14 07:08 insionng