mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 03:01:03 +01:00
16 lines
417 B
Go
16 lines
417 B
Go
// Package jade the JadeEngine's functionality lives inside ../html now
|
|
package jade
|
|
|
|
import (
|
|
"github.com/kataras/iris/config"
|
|
"github.com/kataras/iris/render/template/engine/html"
|
|
)
|
|
|
|
// New creates and returns the HTMLTemplate template engine
|
|
func New(c config.Template) *html.Engine {
|
|
// copy the Jade to the HTMLTemplate
|
|
c.HTMLTemplate = config.HTMLTemplate(c.Jade)
|
|
s := &html.Engine{Config: &c}
|
|
return s
|
|
}
|