dpouris / goster

🐹 Goster is a Go package to help you make micro-services and API's
MIT License
13 stars 0 forks source link

PR#4 when reloading an html page that's served via the Ctx.HTML or Ctx.Template funcs it repeats it's content #5

Closed dpouris closed 3 months ago

dpouris commented 1 year ago

When reloading an html page that's served via the Ctx.HTML or Ctx.Template funcs it repeats it's content. With a result like this:

https://user-images.githubusercontent.com/7901125/209412144-69c3f21c-8201-4696-b071-e7dab1e13b68.mp4

You can find the code related to this in the 4th PR inside of goster/context.go:28 (func Template) and goster/context.go:47 (func HTML)

dpouris commented 1 year ago

there's one goster.Ctx instance in total instead there should be context in every single request