go/src
Andrew Gerrand 12dfc3bee4 text/template, html/template: add block keyword and permit template redefinition
This change adds a new "block" keyword that permits the definition
of templates inline inside existing templates, and loosens the
restriction on template redefinition. Templates may now be redefined,
but in the html/template package they may only be redefined before
the template is executed (and therefore escaped).

The intention is that such inline templates can be redefined by
subsequent template definitions, permitting a kind of template
"inheritance" or "overlay". (See the example for details.)

Fixes #3812

Change-Id: I733cb5332c1c201c235f759cc64333462e70dc27
Reviewed-on: https://go-review.googlesource.com/14005
Reviewed-by: Rob Pike <r@golang.org>
2015-09-28 06:01:30 +00:00
..
archive archive/tar: remove dead code with USTAR path splitting 2015-09-23 23:55:13 +00:00
bufio bufio: fix scanning with a final empty token. 2015-09-25 21:46:13 +00:00
builtin
bytes bytes: improve Compare function on amd64 for large byte arrays 2015-08-26 03:52:20 +00:00
cmd cmd/cgo: only declare real function in gccgo exported header file 2015-09-28 04:37:31 +00:00
compress compress/gzip: detect truncated streams 2015-09-23 08:29:13 +00:00
container
crypto crypto/x509: return err if marshalPublicKey fails to marshal an rsa public key 2015-09-18 21:48:10 +00:00
database/sql database/sql: fix typo 2015-09-14 00:20:55 +00:00
debug debug/dwarf: add test for split DWARF 2015-09-15 17:57:56 +00:00
encoding encoding/json: spell "marshaling" and "unmarshaling" consistently 2015-09-23 00:48:35 +00:00
errors
expvar
flag
fmt fmt: allow any type in a format's width argument 2015-09-10 20:53:22 +00:00
go go/printer: avoid stomping on err before checking it 2015-09-21 19:29:26 +00:00
hash hash/crc32: add AMD64 optimized IEEE CRC calculation 2015-09-16 15:42:42 +00:00
html text/template, html/template: add block keyword and permit template redefinition 2015-09-28 06:01:30 +00:00
image image/png: integer underflow when decoding 2015-09-21 23:09:22 +00:00
index/suffixarray
internal runtime,internal/trace: map/slice literals janitoring 2015-09-11 14:03:43 +00:00
io io: add WriteString support to MultiWriter 2015-09-01 04:00:12 +00:00
log
math math/big: remove some string conversions in Int encoding 2015-09-25 22:25:52 +00:00
mime multipart: fixes problem parsing mime/multipart of certain lengths 2015-09-24 09:00:52 +00:00
net net/http/fcgi: fix panic with malformed params record 2015-09-27 06:57:03 +00:00
os os: document that behavior of Seek on O_APPEND files is not specified 2015-09-23 17:06:02 +00:00
path all: fix some vet-caught formatting errors, mostly but not only in tests 2015-08-21 05:37:36 +00:00
reflect runtime: on map update, don't overwrite key if we don't need to. 2015-09-09 21:06:49 +00:00
regexp regexp: add runnable example to regex.Split 2015-09-23 03:29:32 +00:00
runtime runtime: fix incomplete sentence in comment 2015-09-23 17:05:39 +00:00
sort
strconv strconv: slightly simplified roundShortest; better comments 2015-09-23 21:14:29 +00:00
strings
sync
syscall syscall: fix alignment check for link-layer information on BSD variants 2015-09-25 22:00:27 +00:00
testing testing/quick: terminate for arbitrary recursive types 2015-08-29 19:23:37 +00:00
text text/template, html/template: add block keyword and permit template redefinition 2015-09-28 06:01:30 +00:00
time time: allow any one- or two-digit day of the month when parsing. 2015-09-10 20:27:53 +00:00
unicode unicode: include rune 0 in RangeTables. 2015-08-24 15:05:48 +00:00
unsafe
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash build: Fix bootstrap.bash for official source tarballs 2015-09-01 19:52:59 +00:00
buildall.bash
clean.bash
clean.bat
clean.rc
iostest.bash
make.bash make.bash: abort if $GOROOT_BOOTSTRAP == $GOROOT 2015-08-24 03:04:52 +00:00
make.bat
make.rc
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc