(tt TemplateType)
| 32 | } |
| 33 | |
| 34 | func (tc *templateCache) initializeTemplateMapKey(tt TemplateType) { |
| 35 | if _, ok := tc.templates[tt]; !ok { |
| 36 | tc.templates[tt] = make(map[string]*template.Template) |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | func (tc *templateCache) existsInModelPath(s string) bool { |
| 41 | return utils.ExistsInPath(tc.templatesPath, s) |