Skip to content

Go standard library middleware to automatically trim alpine-ajax responses to only inclued targeted ids

License

Notifications You must be signed in to change notification settings

pilgrimsleet/alpine-ajax-go-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

alpine-ajax-go-middleware

Go standard library middleware to automatically trim alpine-ajax responses to only inclued targeted ids

This middleware is written to be paired with alpine-ajax, when used with the intended pattern of progressive enhancement. It examines the headers to see if it is an alpine-ajax request, then trims down the generated page to only inclued the targeted ids as well as elements with "x-sync." When it is not an alpine-ajax request, this middleware has no effect.

About

Go standard library middleware to automatically trim alpine-ajax responses to only inclued targeted ids

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages