mirror of
https://github.com/kataras/iris.git
synced 2025-12-21 03:47:04 +00:00
Read https://github.com/kataras/iris/tree/master/HISTORY.md
This commit is contained in:
@@ -152,15 +152,11 @@ func getPongoContext(templateData interface{}) pongo2.Context {
|
||||
return nil
|
||||
}
|
||||
|
||||
if v, isMap := templateData.(map[string]interface{}); isMap {
|
||||
return v
|
||||
}
|
||||
|
||||
if contextData, isPongoContext := templateData.(pongo2.Context); isPongoContext {
|
||||
return contextData
|
||||
}
|
||||
|
||||
return nil
|
||||
return templateData.(map[string]interface{})
|
||||
}
|
||||
|
||||
func (p *Engine) fromCache(relativeName string) *pongo2.Template {
|
||||
|
||||
Reference in New Issue
Block a user