]> Cypherpunks repositories - gostls13.git/commit
html/template, text/template: add ParseFS
authorRuss Cox <rsc@golang.org>
Mon, 6 Jul 2020 15:28:52 +0000 (11:28 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 20 Oct 2020 18:41:14 +0000 (18:41 +0000)
commit2a9aa4dcac0c33f7fffefb94a1bc92a17fd7cfd3
treed7bfc3e8def31aeb5a692afaefaa862f28f5b287
parent1296ee6b4f9058be75c799513ccb488d2f2dd085
html/template, text/template: add ParseFS

Now templates can be parsed not just from operating system files
but from arbitrary file systems, including zip files.

For #41190.

Change-Id: I2172001388ddb1f13defa6c5e644e8ec8703ee80
Reviewed-on: https://go-review.googlesource.com/c/go/+/243938
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
src/html/template/multi_test.go
src/html/template/template.go
src/html/template/testdata/fs.zip [new file with mode: 0644]
src/text/template/helper.go
src/text/template/multi_test.go