package main
import (
"bytes"
"html/template"
"git.sr.ht/~jordanreger/bsky"
)
func GetActorPageEmbed(actor bsky.Actor) string {
t := template.Must(template.ParseFS(publicFiles, "public/*"))
var actor_page bytes.Buffer
t.ExecuteTemplate(&actor_page, "actor.embed.html", actor)
return actor_page.String()
}
func GetThreadPageEmbed(thread bsky.Thread) string {
t := template.Must(template.ParseFS(publicFiles, "public/*"))
var thread_page bytes.Buffer
t.ExecuteTemplate(&thread_page, "thread.embed.html", thread)
return thread_page.String()
}
func GetListPageEmbed(list bsky.List) string {
t := template.Must(template.ParseFS(publicFiles, "public/*"))
var list_page bytes.Buffer
t.ExecuteTemplate(&list_page, "list.embed.html", list)
return list_page.String()
}