mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
3093d65363
Former-commit-id: cda69f08955cb0d594e98bf26197ee573cbba4b2
11 lines
354 B
Go
11 lines
354 B
Go
package view
|
|
|
|
// EngineFuncer is an addition of a view engine,
|
|
// if a view engine implements that interface
|
|
// then iris can add some closed-relative iris functions
|
|
// like {{ urlpath }} and {{ urlpath }}.
|
|
type EngineFuncer interface {
|
|
// AddFunc should adds a function to the template's function map.
|
|
AddFunc(funcName string, funcBody interface{})
|
|
}
|