Closed tguichaoua closed 5 months ago
I really like this implementation, thank you. Especially support for file name and file stem will be very helpful I think.
One thing we should probably document with this: map keys can clash and it is up to the user that there are no collisions. E.g. with a structure like
folder
subfolder_a
file.png
subfolder_b
file.png
FileName
and FileStem
keys will clash leading to only one asset being loaded.
Changes
MapKey
to use any type as key for mapped asset collectionString
hasn't changedBox<str>
as possible key (same behaviour asString
)FileName
andFileStem
as possible key type that respectively usePath::file_name
andPath::file_stem
as key value.