]> Cypherpunks repositories - gostls13.git/commit
html/template: add Clone and AddParseTree. Make text/template's Clone
authorNigel Tao <nigeltao@golang.org>
Wed, 15 Feb 2012 05:16:30 +0000 (16:16 +1100)
committerNigel Tao <nigeltao@golang.org>
Wed, 15 Feb 2012 05:16:30 +0000 (16:16 +1100)
commit0c5239410e90f14dadf87d73a7d8e9161eb0bec0
tree6139b6d1f9af82287af34c322645dfbc5464a175
parentaca8071fd53fc4f60771fe816b1e7c20c5c674fb
html/template: add Clone and AddParseTree. Make text/template's Clone
return (*Template, error), not just *Template.

Fixes #2757.

R=r
CC=golang-dev
https://golang.org/cl/5665044
src/pkg/html/template/clone_test.go
src/pkg/html/template/template.go
src/pkg/text/template/multi_test.go
src/pkg/text/template/template.go