code: func getPongoContext(templateData interface{}) pongo2.Context {
  	if templateData == nil {
  		return nil
  	}
  
  	if contextData, isPongoContext := templateData.(pongo2.Context); isPongoContext {
  		return contextData
  	}
  
  	return templateData.(map[string]interface{})
  }
docs: // getPongoContext returns the pongo2.Context from map[string]interface{} or from pongo2.Context, used internaly