From: Andrew Gerrand Date: Fri, 29 Jan 2016 05:44:16 +0000 (+1100) Subject: doc: link to block example in go1.6 doc X-Git-Tag: go1.6rc2~3^2~8 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1ab900e5f14d01f34fad75131eaa4cebe3bbe6ad;p=gostls13.git 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 --- 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 {{"{{"}}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 -

- -
-<title>{{"{{"}}block "title"}}Page Title{{"{{"}}end}}</title>
-<body>
-<h1>{{"{{"}}template "title"}}</h1>
-{{"{{"}}block "page"}}Main text{{"{{"}}end}}
-
- -

-defines the basic formatting of a web page. A program can then -overlay that template with new definitions for the "title" -and "page" blocks to reuse the formatting for another page. +There is an example +in the text/template package that demonstrates this new feature.

Minor changes to the library