package tpl import ( "fmt" "sh.org.ru/pkg/model" "strconv" ) templ Quote(quote *model.Quote) {
#{ strconv.Itoa(int(quote.ID)) }
@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) } }