package tpl import ( "fmt" "sh.org.ru/pkg/model" "strconv" ) templ Quote(quote *model.Quote) {
#{ strconv.Itoa(int(quote.ID)) } { quote.CreatedAt.Format("02.01.06") }
@templ.Raw(quote.Text())
} templ QuotePage(quote *model.Quote) { @Layout(HeaderParams{ Title: "Цитата #" + strconv.Itoa(int(quote.ID)), URL: fmt.Sprintf("https://sh.org.ru/quote/%d", quote.ID), Description: templ.EscapeString(quote.Quote), }) { @Quote(quote) } }