Open opens a file from file system.
(name string)
| 215 | |
| 216 | // Open opens a file from file system. |
| 217 | func (l *jetLoader) Open(name string) (io.ReadCloser, error) { |
| 218 | name = strings.TrimPrefix(name, "/") |
| 219 | return l.fs.Open(name) |
| 220 | } |
| 221 | |
| 222 | // Exists checks if the template name exists by walking the list of template paths. |
| 223 | func (l *jetLoader) Exists(name string) bool { |
no outgoing calls
no test coverage detected