mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
beef97fd5d
Former-commit-id: e26a5701e00ec055f3bcf693c1980c7d22147310
24 lines
812 B
Go
24 lines
812 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
|
|
//
|
|
// Examples:
|
|
// https://github.com/kataras/iris/tree/master/_examples/view/template_pug_0
|
|
// https://github.com/kataras/iris/tree/master/_examples/view/template_pug_1
|
|
// https://github.com/kataras/iris/tree/master/_examples/view/template_pug_2
|
|
// https://github.com/kataras/iris/tree/master/_examples/view/template_pug_3
|
|
func Pug(directory, extension string) *HTMLEngine {
|
|
s := HTML(directory, extension)
|
|
s.middleware = jade.Parse
|
|
return s
|
|
}
|