diff options
| author | Rob Pike <r@golang.org> | 2012-02-10 14:21:36 +1100 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2012-02-10 14:21:36 +1100 |
| commit | 0357af80b461e8dea71602ee3d4bcb7d733c7613 (patch) | |
| tree | 7e5df428891005ba82acb3abd0fcc8efe9f3e3b8 /src/pkg/text | |
| parent | 4152b4345724dae4b058d48a23d29ac8f8bda453 (diff) | |
| download | go-0357af80b461e8dea71602ee3d4bcb7d733c7613.tar.xz | |
template: refer HTML users to html/template
Fixes #2963.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5650051
Diffstat (limited to 'src/pkg/text')
| -rw-r--r-- | src/pkg/text/template/doc.go | 6 |
1 files changed, 4 insertions, 2 deletions
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 |
