tpl: Fix race condition in text template baseof
authorCameron Moore <moorereason@gmail.com>
Sun, 17 Jan 2021 05:05:58 +0000 (23:05 -0600)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 22 Jan 2021 18:25:45 +0000 (19:25 +0100)
commit241b7483ea954653512d4895ad6bacf79ee26ddc
treebc3952c96d955f625f25d243a7c7b09e86de6b29
parente19a046c4be9b0654884259b9df94f41561e4fc3
tpl: Fix race condition in text template baseof

Copy most of the htmltemplate cloning to the textemplate implementation
in the same function.
tpl/tplimpl/template.go