Fix Go template script escaping
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 23 May 2020 13:32:27 +0000 (15:32 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sat, 23 May 2020 20:00:34 +0000 (22:00 +0200)
commit6c3c6686f5d3c7155e2d455b07ac8ab70f42cb88
tree666c09383480c74ba69ea7a0442a67029b83a095
parentc34bf48560c91c8a2fa106867af7b08a569609b5
Fix Go template script escaping

Fixes #6695
27 files changed:
hugolib/template_test.go
scripts/fork_go_templates/main.go
tpl/internal/go_templates/cfg/cfg.go [new file with mode: 0644]
tpl/internal/go_templates/fmtsort/sort.go
tpl/internal/go_templates/fmtsort/sort_test.go
tpl/internal/go_templates/htmltemplate/content_test.go
tpl/internal/go_templates/htmltemplate/doc.go
tpl/internal/go_templates/htmltemplate/escape_test.go
tpl/internal/go_templates/htmltemplate/example_test.go
tpl/internal/go_templates/htmltemplate/js.go
tpl/internal/go_templates/htmltemplate/js_test.go
tpl/internal/go_templates/htmltemplate/template_test.go
tpl/internal/go_templates/testenv/testenv.go [new file with mode: 0644]
tpl/internal/go_templates/testenv/testenv_cgo.go [new file with mode: 0644]
tpl/internal/go_templates/testenv/testenv_notwin.go [new file with mode: 0644]
tpl/internal/go_templates/testenv/testenv_windows.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/doc.go
tpl/internal/go_templates/texttemplate/exec.go
tpl/internal/go_templates/texttemplate/exec_test.go
tpl/internal/go_templates/texttemplate/funcs.go
tpl/internal/go_templates/texttemplate/hugo_template.go
tpl/internal/go_templates/texttemplate/multi_test.go
tpl/internal/go_templates/texttemplate/parse/lex.go
tpl/internal/go_templates/texttemplate/parse/node.go
tpl/internal/go_templates/texttemplate/parse/parse.go
tpl/internal/go_templates/texttemplate/parse/parse_test.go
tpl/internal/go_templates/texttemplate/template.go