@templ.Raw(util.EnrichPost(post.Body))
package views
import (
"fmt"
"github.com/dominicf2001/comfychan/internal/database"
"github.com/dominicf2001/comfychan/internal/util"
"github.com/dominicf2001/comfychan/web/views/shared"
"strconv"
)
templ ThreadPosts(posts []database.Post) {
for _, post := range (posts) {
@templ.Raw(util.EnrichPost(post.Body))
}
}
}
templ Thread(board database.Board, thread database.Thread, posts []database.Post) {
@shared.Layout() {
@BoardHeader(board)
@templ.Raw(util.EnrichPost(posts[0].Body))