Shen Hao

Results 4 comments of Shen Hao

I do internationalization in this way: //in handler or add i18n to global functions m := jet.VarMap{} m.Set("i18n", GetText) //func GetText(locale,str string)string{...} Render(ctx, "public/home", m, data) //ctx=*fasthttp.RequestCtx, I use fasthttp...

hi @nkev, here is my render function: https://github.com/hao1118/fasthttp-rendering-jet-template

ya, almost a framework if having session and database modules. I use "github.com/fasthttp-contrib/sessions" and mongodb "gopkg.in/mgo.v2". func RenderCache should add support for no-gzip clients(unzip gzipped cache data).

@annismckenzie : I just moved the code to my own github page ;-)