mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
18 lines
488 B
Go
18 lines
488 B
Go
|
package view
|
||
|
|
||
|
import (
|
||
|
"github.com/Joker/jade"
|
||
|
)
|
||
|
|
||
|
// Pug (or Jade) returns a new pug view engine.
|
||
|
// It shares the same exactly logic with the
|
||
|
// html view engine, it uses the same exactly configuration.
|
||
|
// It has got some features and a lot of functions
|
||
|
// which will make your life easier.
|
||
|
// Read more about the Jade Go Template: https://github.com/Joker/jade
|
||
|
func Pug(directory, extension string) *HTMLEngine {
|
||
|
s := HTML(directory, extension)
|
||
|
s.middleware = jade.Parse
|
||
|
return s
|
||
|
}
|