package pages import ( "git.grosinger.net/tgrosinger/saasitone/templ/components" "git.grosinger.net/tgrosinger/saasitone/pkg/form" "git.grosinger.net/tgrosinger/saasitone/pkg/page" ) type CacheForm struct { Value string `form:"value"` form.Submission } templ Cache(p page.Page, f *CacheForm, value *string) {

Test the cache

This route handler shows how the default in-memory cache works. Try updating the value using the form below and see how it persists after you reload the page. HTMX makes it easy to re-render the cached value after the form is submitted.
if value != nil { { *value } } else { (empty) }

@components.CSRF(p.CSRF)
}