docs: 修复建议,在不需要时创建自己的 JSON 属性函数
作者: a-h创建于 2026年7月24日更新于 2026年7月24日
https://templ.guide/syntax-and-usage/attributes/#json-attributes 文档中提到要创建一个函数,但 https://GitHub.com/a-h/templ/blob/04abee5364c6fab2bde8c00d215fdcb630ad6a94/jsonstring.go#L7-L14 就是为此目的而设计的。需要更新文档。
内容来源: a-h/templ