]> Cypherpunks repositories - gostls13.git/commitdiff
template: refer HTML users to html/template
authorRob Pike <r@golang.org>
Fri, 10 Feb 2012 03:21:36 +0000 (14:21 +1100)
committerRob Pike <r@golang.org>
Fri, 10 Feb 2012 03:21:36 +0000 (14:21 +1100)
Fixes #2963.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5650051

src/pkg/text/template/doc.go

index 3be1ec44e697102f6d4dc799c1b3552aff3469fd..35c4c6811831a472ced222be42c7081820d23cc4 100644 (file)
@@ -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