Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tpl
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-12-11 10:08:42 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-12-11 10:08:42 +0300
commit5f8c2818f120b881f58f4cec67aed876edb8bcdf (patch)
tree5e25919a9d47332eee3186d72e043708e1a56e58 /tpl
parentc5f2f5837fdf6a30c7b28e8368033623b74a30a0 (diff)
Deprecate Ace and Amber
Fixes #6609
Diffstat (limited to 'tpl')
-rw-r--r--tpl/tplimpl/ace.go3
-rw-r--r--tpl/tplimpl/amber_compiler.go3
2 files changed, 6 insertions, 0 deletions
diff --git a/tpl/tplimpl/ace.go b/tpl/tplimpl/ace.go
index bdbc71059..5aa9fe2cb 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 b37becb3d..c9362e7df 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)