ykmnkmi / jinja.dart

Jinja2 template engine port for Dart.
https://pub.dev/packages/jinja
MIT License
52 stars 11 forks source link

issue when loader try to load subfolders in a given path #7

Closed cherif-dev closed 2 years ago

cherif-dev commented 4 years ago

Hello 'Jinja for dart' team. I found this issue if there is a sub folder in the given path

img1

I fixed it by adding a control to check if the parameter <path> contains a '.' like this:

... .where((String path) => path.contains('.') && extensions.contains(_path.extension(path).substring(1))) ...

Best regards

ykmnkmi commented 3 years ago

Sorry for the late answer, is the problem still relevant?