mirror of
https://github.com/kataras/iris.git
synced 2026-01-23 20:05:59 +00:00
:)
This commit is contained in:
@@ -222,6 +222,10 @@ func (l *jetLoader) Exists(name string) (string, bool) {
|
||||
// Load should load the templates from a physical system directory or by an embedded one (assets/go-bindata).
|
||||
func (s *JetEngine) Load() error {
|
||||
return walk(s.fs, s.rootDir, func(path string, info os.FileInfo, err error) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if info == nil || info.IsDir() {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user