An HTML-only Bluesky frontend
at main 357 B view raw
1package main 2 3import ( 4 "bytes" 5 "fmt" 6 "html/template" 7 8 "git.sr.ht/~jordanreger/bsky" 9) 10 11func GetActorPage(actor bsky.Actor) string { 12 t := template.Must(template.ParseFS(publicFiles, "public/*")) 13 var actor_page bytes.Buffer 14 err := t.ExecuteTemplate(&actor_page, "actor.html", actor) 15 if err != nil { 16 fmt.Println(err) 17 } 18 return actor_page.String() 19}