Open returns the result of `os.Open()` on the file located using the same logic as Exists().
(templatePath string)
| 79 | |
| 80 | // Open returns the result of `os.Open()` on the file located using the same logic as Exists(). |
| 81 | func (l *OSFileSystemLoader) Open(templatePath string) (io.ReadCloser, error) { |
| 82 | return os.Open(filepath.Join(l.dir, filepath.FromSlash(templatePath))) |
| 83 | } |
| 84 | |
| 85 | // InMemLoader is a simple in-memory loader storing template contents in a simple map. |
| 86 | // InMemLoader normalizes paths passed to its methods by converting any input path to a slash-delimited path, |