mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 20:37:05 +00:00
Implement a new View Engine for the Jet template parser as requested at: https://github.com/kataras/iris/issues/1281
Former-commit-id: 3e00bdfbf1f3998a1744c390c12fd70430ac0320
This commit is contained in:
@@ -29,3 +29,15 @@ type Engine interface {
|
||||
// Ext should return the final file extension which this view engine is responsible to render.
|
||||
Ext() string
|
||||
}
|
||||
|
||||
type namedEngine interface {
|
||||
String() string
|
||||
}
|
||||
|
||||
func getEngineName(e Engine) string {
|
||||
if n, ok := e.(namedEngine); ok {
|
||||
return n.String()
|
||||
}
|
||||
|
||||
return ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user