Adrian Hesketh
Adrian Hesketh
That is also something that I'm looking at @stephenafamo - I put an example of what that could look like at https://github.com/a-h/templ/issues/498#issuecomment-1937716137 The example demonstrates the concept of being able...
Regarding how customisation might work with templ, I've put together a demonstration of remote loading of components. https://github.com/a-h/templ-remote Essentially, you can have a `Remotable` block that can optionally load sections...
re: migration, you can do it gradually without replacing everything all at once. You can use Go templates from within templ, and templ components within Go templates. See: https://templ.guide/syntax-and-usage/using-with-go-templates/ for...
I think this sort of thing would be better implemented before compile time. For example, if you had a directory that you knew you were serving up, you could write...
# Calculating file versions If you include a file version in the querystring, and set `Cache-Control` headers, the browser will only fetch new versions. @joerdav's solution works great for that...
By the way, @x80486 - you mentioned you're using Fiber, which has etag middleware already: https://docs.gofiber.io/api/middleware/etag/ A lot of commercial projects would have a CDN like CloudFlare or CloudFront which...