mirror of
https://github.com/kataras/iris.git
synced 2026-01-07 20:17:05 +00:00
New: i18n pluralization and variables support and more...
fixes: #1649, #1648, #1641, #1650 relative to: #1597
This commit is contained in:
@@ -25,6 +25,7 @@ import (
|
||||
// https://github.com/kataras/iris/tree/master/_examples/view/template_pug_3
|
||||
func Pug(fs interface{}, extension string) *HTMLEngine {
|
||||
s := HTML(fs, extension)
|
||||
s.name = "Pug"
|
||||
|
||||
s.middleware = func(name string, text []byte) (contents string, err error) {
|
||||
tmpl := jade.New(name)
|
||||
|
||||
Reference in New Issue
Block a user