Skip to content
Permalink
Browse files

Deprecate Ace and Amber

Fixes #6609
  • Loading branch information
bep committed Dec 11, 2019
1 parent c5f2f58 commit 5f8c2818f120b881f58f4cec67aed876edb8bcdf
Showing with 6 additions and 0 deletions.
  1. +3 −0 tpl/tplimpl/ace.go
  2. +3 −0 tpl/tplimpl/amber_compiler.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))]
@@ -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)

0 comments on commit 5f8c281

Please sign in to comment.
You can’t perform that action at this time.