diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-12-10 10:02:15 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-12-12 11:59:34 +0300 |
commit | 167c01530bb295c8b8d35921eb27ffa5bee76dfe (patch) | |
tree | 338ba8c18bf8533bb0fec5506a12e78b656d6723 /tpl/template.go | |
parent | 4c804319f6db0b8459cc9b5df4a904fd2c55dedd (diff) |
Create lightweight forks of text/template and html/template
This commit also removes support for Ace and Amber templates.
Updates #6594
Diffstat (limited to 'tpl/template.go')
-rw-r--r-- | tpl/template.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tpl/template.go b/tpl/template.go index 0d7598fde..63bf42730 100644 --- a/tpl/template.go +++ b/tpl/template.go @@ -15,6 +15,8 @@ package tpl import ( "fmt" + "github.com/gohugoio/hugo/tpl/internal/go_templates/htmltemplate" + "io" "path/filepath" "regexp" @@ -29,9 +31,8 @@ import ( "github.com/spf13/afero" - "html/template" - texttemplate "text/template" - "text/template/parse" + texttemplate "github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate" + "github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate/parse" bp "github.com/gohugoio/hugo/bufferpool" "github.com/gohugoio/hugo/metrics" |