Create lightweight forks of text/template and html/template
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 10 Dec 2019 07:02:15 +0000 (08:02 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 12 Dec 2019 08:59:34 +0000 (09:59 +0100)
commit167c01530bb295c8b8d35921eb27ffa5bee76dfe
tree338ba8c18bf8533bb0fec5506a12e78b656d6723
parent4c804319f6db0b8459cc9b5df4a904fd2c55dedd
Create lightweight forks of text/template and html/template

This commit also removes support for Ace and Amber templates.

Updates #6594
82 files changed:
.gitignore
go.mod
go.sum
hugolib/case_insensitive_test.go
hugolib/template_engines_test.go
magefile.go
output/layout_base.go
scripts/fork_go_templates/.gitignore [new file with mode: 0644]
scripts/fork_go_templates/main.go [new file with mode: 0644]
tpl/cast/cast_test.go
tpl/collections/collections.go
tpl/collections/collections_test.go
tpl/internal/go_templates/fmtsort/export_test.go [new file with mode: 0644]
tpl/internal/go_templates/fmtsort/sort.go [new file with mode: 0644]
tpl/internal/go_templates/fmtsort/sort_test.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/attr.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/attr_string.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/clone_test.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/content.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/content_test.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/context.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/css.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/css_test.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/delim_string.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/doc.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/element_string.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/error.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/escape.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/escape_test.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/example_test.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/examplefiles_test.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/html.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/html_test.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/hugo_template.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/js.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/js_test.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/jsctx_string.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/state_string.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/template.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/template_test.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/transition.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/transition_test.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/url.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/url_test.go [new file with mode: 0644]
tpl/internal/go_templates/htmltemplate/urlpart_string.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/doc.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/example_test.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/examplefiles_test.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/examplefunc_test.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/exec.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/exec_test.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/funcs.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/helper.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/hugo_exec.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/hugo_template.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/multi_test.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/option.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/parse/lex.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/parse/lex_test.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/parse/node.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/parse/parse.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/parse/parse_test.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/template.go [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/testdata/file1.tmpl [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/testdata/file2.tmpl [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/testdata/tmpl1.tmpl [new file with mode: 0644]
tpl/internal/go_templates/texttemplate/testdata/tmpl2.tmpl [new file with mode: 0644]
tpl/partials/partials.go
tpl/safe/safe_test.go
tpl/strings/strings.go
tpl/strings/strings_test.go
tpl/strings/truncate.go
tpl/strings/truncate_test.go
tpl/template.go
tpl/template_test.go
tpl/tplimpl/ace.go [deleted file]
tpl/tplimpl/amber_compiler.go [deleted file]
tpl/tplimpl/template.go
tpl/tplimpl/template_ast_transformers.go
tpl/tplimpl/template_ast_transformers_test.go
tpl/transform/transform_test.go
tpl/urls/urls.go