iris/render/template/engine/jade/jade.go

16 lines
417 B
Go
Raw Normal View History

// Package jade the JadeEngine's functionality lives inside ../html now
2016-05-30 16:08:09 +02:00
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
2016-05-30 16:08:09 +02:00
}