From: Rob Pike Date: Fri, 10 Feb 2012 03:21:36 +0000 (+1100) Subject: template: refer HTML users to html/template X-Git-Tag: weekly.2012-02-14~162 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0357af80b461e8dea71602ee3d4bcb7d733c7613;p=gostls13.git template: refer HTML users to html/template Fixes #2963. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5650051 --- diff --git a/src/pkg/text/template/doc.go b/src/pkg/text/template/doc.go index 3be1ec44e6..35c4c68118 100644 --- a/src/pkg/text/template/doc.go +++ b/src/pkg/text/template/doc.go @@ -3,8 +3,10 @@ // license that can be found in the LICENSE file. /* -Package template implements data-driven templates for generating textual output -such as HTML. +Package template implements data-driven templates for generating textual output. + +To generate HTML output, see package html/template, which has the same interface +as this package but automatically secures HTML output against certain attacks. Templates are executed by applying them to a data structure. Annotations in the template refer to elements of the data structure (typically a field of a struct