Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork276
Open
Description
version
0.24.3
description
- Given are two templates that use dots in their filenames to emulate namespaces:
list.hbslist.item.hbs
- Templates are added to the default
partialsorlayoutscollections using a glob string. - When each view reaches the default
renameKeycallback,view.keyis already sanitized to only contain the template basename. - When the
renameKeycallback gets invoked andview.keystill contains ".", any remainder after (and including) the dot will be discarded. - When the view for the template containing the extended name gets added to the collection it silently overwrites the previous view.
Source:
Lines 140 to 142 ind385ca8
| renameKey:function(fp){ | |
| returnpath.basename(fp,path.extname(fp)); | |
| } |
Suggested solution
Warn or error out if adding a view onto a collection replaces an already existing view. Optionally suggest a customrenameKey callback.
This will also help with situations where users have identical basenames or identical filenames in different directories.
Metadata
Metadata
Assignees
Labels
No labels