mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
9f85b74fc9
Former-commit-id: da4f38eb9034daa49446df3ee529423b98f9b331
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
|
|
}
|