From 5f8c2818f120b881f58f4cec67aed876edb8bcdf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= <bjorn.erik.pedersen@gmail.com> Date: Wed, 11 Dec 2019 08:08:42 +0100 Subject: [PATCH] Deprecate Ace and Amber Fixes #6609 --- tpl/tplimpl/ace.go | 3 +++ tpl/tplimpl/amber_compiler.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tpl/tplimpl/ace.go b/tpl/tplimpl/ace.go index bdbc7105..5aa9fe2c 100644 --- a/tpl/tplimpl/ace.go +++ b/tpl/tplimpl/ace.go @@ -18,10 +18,13 @@ import ( "strings" + "github.com/gohugoio/hugo/helpers" + "github.com/yosssi/ace" ) func (t *templateHandler) addAceTemplate(name, basePath, innerPath string, baseContent, innerContent []byte) error { + helpers.Deprecated("Ace", "See https://github.com/gohugoio/hugo/issues/6609", false) t.checkState() var base, inner *ace.File withoutExt := name[:len(name)-len(filepath.Ext(innerPath))] diff --git a/tpl/tplimpl/amber_compiler.go b/tpl/tplimpl/amber_compiler.go index b37becb3..c9362e7d 100644 --- a/tpl/tplimpl/amber_compiler.go +++ b/tpl/tplimpl/amber_compiler.go @@ -16,11 +16,14 @@ package tplimpl import ( "html/template" + "github.com/gohugoio/hugo/helpers" + "github.com/eknkc/amber" "github.com/spf13/afero" ) func (t *templateHandler) compileAmberWithTemplate(b []byte, path string, templ *template.Template) (*template.Template, error) { + helpers.Deprecated("Amber", "See https://github.com/gohugoio/hugo/issues/6609", false) c := amber.New() c.Options.VirtualFilesystem = afero.NewHttpFs(t.layoutsFs) -- 2.30.2