aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gerrand <adg@golang.org>2016-01-29 16:44:16 +1100
committerRuss Cox <rsc@golang.org>2016-01-29 14:19:36 +0000
commit1ab900e5f14d01f34fad75131eaa4cebe3bbe6ad (patch)
tree1352104f1ce7de587208bc4f08da399a4d327639
parentf5e309012b2dc4d60b324e8d805345002bcdaec1 (diff)
downloadgo-1ab900e5f14d01f34fad75131eaa4cebe3bbe6ad.tar.gz
go-1ab900e5f14d01f34fad75131eaa4cebe3bbe6ad.zip
doc: link to block example in go1.6 doc
Fixes #14143 Change-Id: I2d77e55bc0b6bb42e11de291e0ddb5ad5d620646 Reviewed-on: https://go-review.googlesource.com/19110 Reviewed-by: Russ Cox <rsc@golang.org>
-rw-r--r--doc/go1.6.html16
1 files changed, 2 insertions, 14 deletions
diff --git a/doc/go1.6.html b/doc/go1.6.html
index 92998ad46c..b4a3900aa0 100644
--- a/doc/go1.6.html
+++ b/doc/go1.6.html
@@ -464,20 +464,8 @@ Second, the new <a href="/pkg/text/template/#hdr-Actions"><code>{{"{{"}}block}}<
combined with allowing redefinition of named templates,
provides a simple way to define pieces of a template that
can be replaced in different instantiations.
-For example, the template
-</p>
-
-<pre>
-&lt;title&gt;{{"{{"}}block "title"}}Page Title{{"{{"}}end}}&lt;/title&gt;
-&lt;body&gt;
-&lt;h1&gt;{{"{{"}}template "title"}}&lt;/h1&gt;
-{{"{{"}}block "page"}}Main text{{"{{"}}end}}
-</pre>
-
-<p>
-defines the basic formatting of a web page. A program can then
-overlay that template with new definitions for the <code>"title"</code>
-and <code>"page"</code> blocks to reuse the formatting for another page.
+There is <a href="/pkg/text/template/#example_Template_block">an example</a>
+in the <code>text/template</code> package that demonstrates this new feature.
</p>
<h3 id="minor_library_changes">Minor changes to the library</h3>