mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
c5f2f5837f
commit
5f8c2818f1
2 changed files with 6 additions and 0 deletions
|
@ -18,10 +18,13 @@ import (
|
||||||
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/gohugoio/hugo/helpers"
|
||||||
|
|
||||||
"github.com/yosssi/ace"
|
"github.com/yosssi/ace"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (t *templateHandler) addAceTemplate(name, basePath, innerPath string, baseContent, innerContent []byte) error {
|
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()
|
t.checkState()
|
||||||
var base, inner *ace.File
|
var base, inner *ace.File
|
||||||
withoutExt := name[:len(name)-len(filepath.Ext(innerPath))]
|
withoutExt := name[:len(name)-len(filepath.Ext(innerPath))]
|
||||||
|
|
|
@ -16,11 +16,14 @@ package tplimpl
|
||||||
import (
|
import (
|
||||||
"html/template"
|
"html/template"
|
||||||
|
|
||||||
|
"github.com/gohugoio/hugo/helpers"
|
||||||
|
|
||||||
"github.com/eknkc/amber"
|
"github.com/eknkc/amber"
|
||||||
"github.com/spf13/afero"
|
"github.com/spf13/afero"
|
||||||
)
|
)
|
||||||
|
|
||||||
func (t *templateHandler) compileAmberWithTemplate(b []byte, path string, templ *template.Template) (*template.Template, error) {
|
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 := amber.New()
|
||||||
c.Options.VirtualFilesystem = afero.NewHttpFs(t.layoutsFs)
|
c.Options.VirtualFilesystem = afero.NewHttpFs(t.layoutsFs)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue