Skip to content

headblockhead/templ-cloudflare-workers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Templ in Cloudflare workers

Uses Cloudflare's Workers and Pages service, along with a key-value store to host a templ app.

Features:

  • Counters are updated without a full page reload
  • Queued requests so all button presses are counted.
  • Worker compiled to web assembly as Go is sadly not supported in Workers
  • Uses htmx for interactivity, templ for page rendering, tinygo to compile for WASM and wrangler to deploy.

About

Templ's counters cloudfront example rewritten in cloudflare workers.

Topics

Resources

Stars

Watchers

Forks