(templatePath string)
| 102 | } |
| 103 | |
| 104 | func (l *InMemLoader) normalize(templatePath string) string { |
| 105 | templatePath = filepath.ToSlash(templatePath) |
| 106 | return path.Join("/", templatePath) |
| 107 | } |
| 108 | |
| 109 | // Open returns a template's contents, or an error if no template was added under this path using Set(). |
| 110 | func (l *InMemLoader) Open(templatePath string) (io.ReadCloser, error) { |