From 1ab900e5f14d01f34fad75131eaa4cebe3bbe6ad Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Fri, 29 Jan 2016 16:44:16 +1100 Subject: [PATCH] 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 --- doc/go1.6.html | 16 ++-------------- 1 file 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 {{"{{"}}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

-- 2.50.0