Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
12 lines
234 B
Go
12 lines
234 B
Go
package commentser
|
|
|
|
import "html/template"
|
|
|
|
// TemplateFuncs 评论展示辅助。
|
|
func TemplateFuncs() template.FuncMap {
|
|
return template.FuncMap{
|
|
"formatCommentTime": FormatCreatedAt,
|
|
"commentAvatar": AvatarOrDefault,
|
|
}
|
|
}
|